diff options
Diffstat (limited to 'implement.h')
| -rw-r--r-- | implement.h | 19 | 
1 files changed, 17 insertions, 2 deletions
| diff --git a/implement.h b/implement.h index 254d86f..2e03c48 100644 --- a/implement.h +++ b/implement.h @@ -9,10 +9,23 @@  /* FIXME: Arbitrary. Need values from Win32.   */ -#define PTHREAD_THREADS_MAX 256 +#define PTHREAD_THREADS_MAX 128  #define PTHREAD_STACK_MIN   65535 -extern DWORD pthreads_thread_count; +#define _PTHREAD_HASH_INDEX(x) (((ULONG) x) % PTHREAD_THREADS_MAX) + +typedef struct _pthread_cleanup_stack _pthread_cleanup_stack_t; +struct _pthread_cleanup_stck { +  _pthread_cleanup_stack_t first; +  int count; +}; + +typedef struct _pthread_cleanup_node _pthread_cleanup_node_t; +struct _pthread_cleanup_node { +  _pthread_cleanup_node_t next; +  void (* routine)(void *); +  void * arg; +};  typedef struct {    size_t stacksize; @@ -27,3 +40,5 @@ typedef struct {  } _pthread_condattr_t;  #endif /* _IMPLEMENT_H */ + + | 
