Browse Source

sharedspice.c, fix `retval' parameter for `pthread_exit()'

pre-master-46
h_vogt 10 years ago
committed by rlar
parent
commit
8ae0b53b9f
  1. 2
      src/sharedspice.c

2
src/sharedspice.c

@ -1503,7 +1503,7 @@ ATTRIBUTE_NORETURN void shared_exit(int status)
ngexit(status, FALSE, coquit, ng_ident, userptr); ngexit(status, FALSE, coquit, ng_ident, userptr);
// finish and exit the worker thread // finish and exit the worker thread
#ifdef HAVE_LIBPTHREAD #ifdef HAVE_LIBPTHREAD
pthread_exit(1);
pthread_exit(NULL);
#elif defined _MSC_VER || defined __MINGW32__ #elif defined _MSC_VER || defined __MINGW32__
_endthreadex(1); _endthreadex(1);
#endif #endif

Loading…
Cancel
Save