From 8d44da4741cb2c094f310ea5538ea02cb78833b6 Mon Sep 17 00:00:00 2001 From: rlar Date: Thu, 22 Jan 2015 17:50:16 +0100 Subject: [PATCH] sharedspice.c, disable unused code --- src/sharedspice.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/sharedspice.c b/src/sharedspice.c index d769f4f14..eec5e2a64 100644 --- a/src/sharedspice.c +++ b/src/sharedspice.c @@ -266,9 +266,9 @@ get_plot_byname(char* plotname) #ifdef THREADS #ifdef __MINGW32__ -static threadId_t tid, printtid, bgtid; +static threadId_t tid, printtid; // , bgtid; #else -static threadId_t tid, printtid, bgtid = (threadId_t) 0; +static threadId_t tid, printtid; // , bgtid = (threadId_t) 0; #endif static bool fl_running = FALSE; @@ -292,15 +292,15 @@ _thread_run(void *string) /* notify caller that thread is running */ if (!nobgtrwanted) bgtr(fl_exited, ng_ident, userptr); - bgtid = thread_self(); +// bgtid = thread_self(); cp_evloop((char *)string); FREE(string); -#ifdef __MINGW32__ - bgtid.p = NULL; - bgtid.x = 0; -#else - bgtid = (threadId_t)0; -#endif +// #ifdef __MINGW32__ +// bgtid.p = NULL; +// bgtid.x = 0; +// #else +// bgtid = (threadId_t)0; +// #endif fl_exited = TRUE; /* notify caller that thread has exited */ if (!nobgtrwanted) @@ -916,9 +916,9 @@ sh_vfprintf(FILE *f, const char *fmt, va_list args) if ((fileno(f) != STDOUT_FILENO && fileno(f) != STDERR_FILENO && f != stderr && f != stdout) -#ifdef THREADS +// #ifdef THREADS // || (fl_running && bgtid == thread_self()) -#endif +// #endif ) return vfprintf(f, fmt, args);