diff options
author | Adam Jackson <ajax@redhat.com> | 2011-03-02 11:26:05 -0500 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2011-03-08 13:24:38 -0500 |
commit | d5e8bb2150ce9d8a4132d61f76621a2c7a7f0acf (patch) | |
tree | cce7abc290605faeaec6112608395e2643c4e199 /glx | |
parent | 3692ff0b35e774a6f6cbedf634d53c4df2e53a24 (diff) |
glx: unifdef BEOS_THREADS
We don't support BeOS, so, no.
Reviewed-by: Daniel Stone <daniel@fooishbar.org>
Signed-off-by: Adam Jackson <ajax@redhat.com>
Diffstat (limited to 'glx')
-rw-r--r-- | glx/glthread.c | 41 | ||||
-rw-r--r-- | glx/glthread.h | 2 |
2 files changed, 1 insertions, 42 deletions
diff --git a/glx/glthread.c b/glx/glthread.c index a2d95b51c..5da7e433c 100644 --- a/glx/glthread.c +++ b/glx/glthread.c @@ -179,49 +179,8 @@ _glthread_SetTSD(_glthread_TSD *tsd, void *ptr) #endif /* WIN32_THREADS */ -/* - * BeOS threads - */ -#ifdef BEOS_THREADS - -unsigned long -_glthread_GetID(void) -{ - return (unsigned long) find_thread(NULL); -} - -void -_glthread_InitTSD(_glthread_TSD *tsd) -{ - tsd->key = tls_allocate(); - tsd->initMagic = INIT_MAGIC; -} - -void * -_glthread_GetTSD(_glthread_TSD *tsd) -{ - if (tsd->initMagic != (int) INIT_MAGIC) { - _glthread_InitTSD(tsd); - } - return tls_get(tsd->key); -} - -void -_glthread_SetTSD(_glthread_TSD *tsd, void *ptr) -{ - if (tsd->initMagic != (int) INIT_MAGIC) { - _glthread_InitTSD(tsd); - } - tls_set(tsd->key, ptr); -} - -#endif /* BEOS_THREADS */ - - - #else /* THREADS */ - /* * no-op functions */ diff --git a/glx/glthread.h b/glx/glthread.h index 782a2a314..28793fcc7 100644 --- a/glx/glthread.h +++ b/glx/glthread.h @@ -68,7 +68,7 @@ #define _glapi_Dispatch _mglapi_Dispatch #endif -#if (defined(PTHREADS) || defined(WIN32_THREADS) || defined(BEOS_THREADS)) \ +#if (defined(PTHREADS) || defined(WIN32_THREADS)) \ && !defined(THREADS) # define THREADS #endif |