diff options
author | bje <bje> | 1998-07-17 12:43:44 +0000 |
---|---|---|
committer | bje <bje> | 1998-07-17 12:43:44 +0000 |
commit | d6e51bbaac36e2f670bba351a4cd74e1c0d308ad (patch) | |
tree | f95970f3ebc08a93eccd2efa7c20b8906c94c9d1 | |
parent | ae0a43e37e725e5187b6f1ad2afba9a35f882c19 (diff) |
1998-07-17 Ben Elliston <bje@cygnus.com>
* pthread.h (PTHREADS_PROCESS_PRIVATE): Remove.
(PTHREAD_PROCESS_SHARED): Likewise. No support for mutexes shared
across processes for now.
(pthread_mutex_t): Use a Win32 CRITICAL_SECTION type for better
performance.
-rw-r--r-- | pthread.h | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -22,11 +22,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #ifndef _PTHREADS_H #define _PTHREADS_H -#define PTHREAD_PROCESS_PRIVATE 0 -#define PTHREAD_PROCESS_SHARED 1 - typedef HANDLE pthread_t; -typedef HANDLE pthread_mutex_t; +typedef CRITICAL_SECTION pthread_mutex_t; typedef struct { void * ptr; } pthread_condattr_t; typedef struct { void * ptr; } pthread_mutexattr_t; |