diff options
author | David Reid <dreid@php.net> | 2002-10-05 11:26:17 +0000 |
---|---|---|
committer | David Reid <dreid@php.net> | 2002-10-05 11:26:17 +0000 |
commit | 2a0fbded3dc3f366cf3e4bfd3a42c7a2f5d2b745 (patch) | |
tree | 16a454a99aa47c8b954271b995bd200712af8326 /TSRM/TSRM.h | |
parent | 4ca381aacfc77f43d02895d7ced4ecd36b5a286e (diff) | |
download | php-git-2a0fbded3dc3f366cf3e4bfd3a42c7a2f5d2b745.tar.gz |
Add BeOS thread support to TSRM. This should not impact on any other OS's
but allows us to build PHP with threading support and therefore we can
build as an Apache 2 module.
The locking is currently done using benaphores but this may be reviewed.
Diffstat (limited to 'TSRM/TSRM.h')
-rw-r--r-- | TSRM/TSRM.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/TSRM/TSRM.h b/TSRM/TSRM.h index d13a4fd1cf..a80500d6db 100644 --- a/TSRM/TSRM.h +++ b/TSRM/TSRM.h @@ -47,6 +47,9 @@ # include <pthread.h> #elif defined(TSRM_ST) # include <st.h> +#elif defined(BETHREADS) +#include <kernel/OS.h> +#include <TLS.h> #endif typedef int ts_rsrc_id; @@ -73,6 +76,13 @@ typedef int ts_rsrc_id; #elif defined(TSRM_ST) # define THREAD_T st_thread_t # define MUTEX_T st_mutex_t +#elif defined(BETHREADS) +# define THREAD_T thread_id +typedef struct { + sem_id sem; + int32 ben; +} beos_ben; +# define MUTEX_T beos_ben * #endif typedef void (*ts_allocate_ctor)(void *, void ***); |