mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 11:28:05 +02:00
glapi: drop condvar
Seems unused and replaced by functionality in os module.
This commit is contained in:
parent
bdbf199a8c
commit
8bd8aec81d
1 changed files with 1 additions and 45 deletions
|
|
@ -107,48 +107,6 @@ typedef pthread_mutex_t _glthread_Mutex;
|
|||
#define _glthread_UNLOCK_MUTEX(name) \
|
||||
(void) pthread_mutex_unlock(&(name))
|
||||
|
||||
typedef pthread_cond_t _glthread_Cond;
|
||||
|
||||
#define _glthread_DECLARE_STATIC_COND(name) \
|
||||
static _glthread_Cond name = PTHREAD_COND_INITIALIZER
|
||||
|
||||
#define _glthread_INIT_COND(cond) \
|
||||
pthread_cond_init(&(cond), NULL)
|
||||
|
||||
#define _glthread_DESTROY_COND(name) \
|
||||
pthread_cond_destroy(&(name))
|
||||
|
||||
#define _glthread_COND_WAIT(cond, mutex) \
|
||||
pthread_cond_wait(&(cond), &(mutex))
|
||||
|
||||
#define _glthread_COND_SIGNAL(cond) \
|
||||
pthread_cond_signal(&(cond))
|
||||
|
||||
#define _glthread_COND_BROADCAST(cond) \
|
||||
pthread_cond_broadcast(&(cond))
|
||||
|
||||
|
||||
#else /* PTHREADS */
|
||||
|
||||
typedef unsigned int _glthread_Cond;
|
||||
#define _glthread_DECLARE_STATIC_COND(name) \
|
||||
// #warning Condition variables not implemented.
|
||||
|
||||
#define _glthread_INIT_COND(cond) \
|
||||
ASSERT(0);
|
||||
|
||||
#define _glthread_DESTROY_COND(name) \
|
||||
ASSERT(0);
|
||||
|
||||
#define _glthread_COND_WAIT(cond, mutex) \
|
||||
ASSERT(0);
|
||||
|
||||
#define _glthread_COND_SIGNAL(cond) \
|
||||
ASSERT(0);
|
||||
|
||||
#define _glthread_COND_BROADCAST(cond) \
|
||||
ASSERT(0);
|
||||
|
||||
#endif /* PTHREADS */
|
||||
|
||||
|
||||
|
|
@ -245,12 +203,10 @@ typedef benaphore _glthread_Mutex;
|
|||
#endif /* BEOS_THREADS */
|
||||
|
||||
|
||||
|
||||
#ifndef THREADS
|
||||
|
||||
/*
|
||||
* THREADS not defined
|
||||
*/
|
||||
#ifndef THREADS
|
||||
|
||||
typedef unsigned _glthread_TSD;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue