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>
This commit is contained in:
		
							parent
							
								
									3692ff0b35
								
							
						
					
					
						commit
						d5e8bb2150
					
				|  | @ -179,49 +179,8 @@ _glthread_SetTSD(_glthread_TSD *tsd, void *ptr) | ||||||
| 
 | 
 | ||||||
| #endif /* WIN32_THREADS */ | #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 */ | #else  /* THREADS */ | ||||||
| 
 | 
 | ||||||
| 
 |  | ||||||
| /*
 | /*
 | ||||||
|  * no-op functions |  * no-op functions | ||||||
|  */ |  */ | ||||||
|  |  | ||||||
|  | @ -68,7 +68,7 @@ | ||||||
| #define _glapi_Dispatch _mglapi_Dispatch | #define _glapi_Dispatch _mglapi_Dispatch | ||||||
| #endif | #endif | ||||||
| 
 | 
 | ||||||
| #if (defined(PTHREADS) || defined(WIN32_THREADS) || defined(BEOS_THREADS)) \ | #if (defined(PTHREADS) || defined(WIN32_THREADS)) \ | ||||||
|     && !defined(THREADS) |     && !defined(THREADS) | ||||||
| # define THREADS | # define THREADS | ||||||
| #endif | #endif | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue