Update files from GTKWave f119b35816e605e753fc1a24ae121a3787615b26 (#2716)
This commit is contained in:
parent
7e94b3a4fa
commit
cb4ddd3213
|
|
@ -1806,6 +1806,7 @@ xc->already_in_flush = 0;
|
||||||
static void *fstWriterFlushContextPrivate1(void *ctx)
|
static void *fstWriterFlushContextPrivate1(void *ctx)
|
||||||
{
|
{
|
||||||
struct fstWriterContext *xc = (struct fstWriterContext *)ctx;
|
struct fstWriterContext *xc = (struct fstWriterContext *)ctx;
|
||||||
|
struct fstWriterContext *xc_parent;
|
||||||
|
|
||||||
pthread_mutex_lock(&(xc->xc_parent->mutex));
|
pthread_mutex_lock(&(xc->xc_parent->mutex));
|
||||||
fstWriterFlushContextPrivate2(xc);
|
fstWriterFlushContextPrivate2(xc);
|
||||||
|
|
@ -1816,11 +1817,11 @@ free(xc->curval_mem);
|
||||||
free(xc->valpos_mem);
|
free(xc->valpos_mem);
|
||||||
free(xc->vchg_mem);
|
free(xc->vchg_mem);
|
||||||
tmpfile_close(&xc->tchn_handle, &xc->tchn_handle_nam);
|
tmpfile_close(&xc->tchn_handle, &xc->tchn_handle_nam);
|
||||||
fstWriterContext* const parent = xc->xc_parent;
|
xc_parent = xc->xc_parent;
|
||||||
free(xc);
|
free(xc);
|
||||||
|
|
||||||
parent->in_pthread = 0;
|
xc_parent->in_pthread = 0;
|
||||||
pthread_mutex_unlock(&(parent->mutex));
|
pthread_mutex_unlock(&(xc_parent->mutex));
|
||||||
|
|
||||||
return(NULL);
|
return(NULL);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -35,6 +35,9 @@
|
||||||
#else
|
#else
|
||||||
#include <malloc.h>
|
#include <malloc.h>
|
||||||
#endif
|
#endif
|
||||||
|
#elif defined(_MSC_VER)
|
||||||
|
#include <malloc.h>
|
||||||
|
#define alloca _alloca
|
||||||
#endif
|
#endif
|
||||||
#define wave_alloca alloca
|
#define wave_alloca alloca
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue