home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1996 December / PCWKCD1296.iso / sharewar / quake106 / utils / light / threads.h < prev    next >
C/C++ Source or Header  |  1996-09-12  |  333b  |  18 lines

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