mirror of
https://github.com/id-Software/Quake-Tools.git
synced 2026-03-20 00:49:35 +01:00
The source release of the qutils.
This commit is contained in:
17
qutils/LIGHT/THREADS.H
Normal file
17
qutils/LIGHT/THREADS.H
Normal file
@@ -0,0 +1,17 @@
|
||||
|
||||
#ifdef __alpha
|
||||
#include <pthread.h>
|
||||
extern pthread_mutex_t *my_mutex;
|
||||
#define LOCK pthread_mutex_lock (my_mutex)
|
||||
#define UNLOCK pthread_mutex_unlock (my_mutex)
|
||||
#else
|
||||
#define LOCK
|
||||
#define UNLOCK
|
||||
#endif
|
||||
|
||||
extern int numthreads;
|
||||
|
||||
typedef void (threadfunc_t) (void *);
|
||||
|
||||
void InitThreads (void);
|
||||
void RunThreadsOn ( threadfunc_t func );
|
||||
Reference in New Issue
Block a user