pike.git / src / threads.h

version» Context lines:

pike.git/src/threads.h:1:   /* -  * $Id: threads.h,v 1.120 2003/12/13 20:37:53 jonasw Exp $ +  * $Id: threads.h,v 1.121 2004/03/08 15:02:43 grubba Exp $    */   #ifndef THREADS_H   #define THREADS_H      #include "machine.h"   #include "object.h"   #include "pike_error.h"   #include "interpret.h"   #include "main.h"   
pike.git/src/threads.h:78:   #define fp Pike_fp   #undef FRAMEPOINTER_WAS_DEFINED   #endif /* FRAMEPOINTER_WAS_DEFINED */         extern int num_threads;   PMOD_EXPORT extern int live_threads;   struct object;   PMOD_EXPORT extern size_t thread_stack_size;    - PMOD_EXPORT void thread_low_error (int errcode); + PMOD_EXPORT void thread_low_error (int errcode, const char *cmd, +  const char *fname, int lineno);      #define LOW_THREAD_CHECK_NONZERO_ERROR(CALL) do { \    int thread_errcode_ = (CALL); \ -  if (thread_errcode_) thread_low_error (thread_errcode_); \ +  if (thread_errcode_) \ +  thread_low_error(thread_errcode_, TOSTR(CALL), \ +  __FILE__, __LINE__); \    } while (0)      #define DEFINE_MUTEX(X) PIKE_MUTEX_T X         #ifdef POSIX_THREADS      #ifdef HAVE_PTHREAD_ATFORK   #define th_atfork(X,Y,Z) pthread_atfork((X),(Y),(Z))   #define th_atfork_prepare()