THREADS.H 333 B

123456789101112131415161718
  1. #ifdef __alpha
  2. #include <pthread.h>
  3. extern pthread_mutex_t *my_mutex;
  4. #define LOCK pthread_mutex_lock (my_mutex)
  5. #define UNLOCK pthread_mutex_unlock (my_mutex)
  6. #else
  7. #define LOCK
  8. #define UNLOCK
  9. #endif
  10. extern int numthreads;
  11. typedef void (threadfunc_t) (void *);
  12. void InitThreads (void);
  13. void RunThreadsOn ( threadfunc_t func );