pike.git / src / threads.h

version» Context lines:

pike.git/src/threads.h:1:   /* -  * $Id: threads.h,v 1.106 2000/12/01 01:15:03 hubbe Exp $ +  * $Id: threads.h,v 1.107 2000/12/01 08:09:56 hubbe Exp $    */   #ifndef THREADS_H   #define THREADS_H      #include "machine.h"   #include "object.h" - #include "error.h" + #include "pike_error.h"   #include "interpret.h"      /* Needed for the sigset_t typedef, which is needed for    * the pthread_sigsetmask() prototype on Solaris 2.x.    */   #include <signal.h>      #ifdef HAVE_SYS_TYPES_H   /* Needed for pthread_t on OSF/1 */   #include <sys/types.h>
pike.git/src/threads.h:160:   #else /* !HAVE_PTHREAD_CONDATTR_DEFAULT */   #define co_init(X) pthread_cond_init((X), 0)   #endif /* HAVE_PTHREAD_CONDATTR_DEFAULT */   #endif /* HAVE_PTHREAD_CONDATTR_DEFAULT_AIX */      #define co_wait(COND, MUTEX) pthread_cond_wait((COND), (MUTEX))   #define co_signal(X) pthread_cond_signal(X)   #define co_broadcast(X) pthread_cond_broadcast(X)   #define co_destroy(X) pthread_cond_destroy(X)   #else - #error No way to make cond-vars + #Pike_error No way to make cond-vars   #endif /* HAVE_PTHREAD_COND_INIT */      #endif /* POSIX_THREADS */               #ifdef UNIX_THREADS   #define THREAD_T thread_t   #define PTHREAD_MUTEX_INITIALIZER DEFAULTMUTEX
pike.git/src/threads.h:531:    } while(0)      #define THREADS_ALLOW_UID() do { \    struct thread_state *_tmp_uid=OBJ2THREAD(Pike_interpreter.thread_id); \    DO_IF_DEBUG({ \    if(thread_for_id(th_self()) != Pike_interpreter.thread_id) { \    fatal("thread_for_id() (or Pike_interpreter.thread_id) failed! %p != %p\n", \    thread_for_id(th_self()),Pike_interpreter.thread_id); \    } \    if ((Pike_in_gc > 50) && (Pike_in_gc < 300)) { \ -  fprintf(stderr, __FILE__ ":" DEFINETOSTR(__LINE__) ": Fatal error:\n"); \ +  fprintf(stderr, __FILE__ ":" DEFINETOSTR(__LINE__) ": Fatal Pike_error:\n"); \    debug_fatal("Threads allowed during garbage collection (%d).\n", \    Pike_in_gc); \    } \    }) \    if(num_threads > 1 && !threads_disabled) { \    SWAP_OUT_THREAD(_tmp_uid); \    live_threads++; \    THREADS_FPRINTF(1, (stderr, "THREADS_ALLOW_UID() %s:%d t:%08x(#%d)\n", \    __FILE__, __LINE__, \    (unsigned int)_tmp_uid->thread_id, live_threads)); \