Header And Logo

PostgreSQL
| The world's most advanced open source database.

pthread-win32.h

Go to the documentation of this file.
00001 /*
00002  * src/port/pthread-win32.h
00003  */
00004 #ifndef __PTHREAD_H
00005 #define __PTHREAD_H
00006 
00007 typedef ULONG pthread_key_t;
00008 typedef CRITICAL_SECTION *pthread_mutex_t;
00009 typedef int pthread_once_t;
00010 
00011 DWORD       pthread_self(void);
00012 
00013 void        pthread_setspecific(pthread_key_t, void *);
00014 void       *pthread_getspecific(pthread_key_t);
00015 
00016 int         pthread_mutex_init(pthread_mutex_t *, void *attr);
00017 int         pthread_mutex_lock(pthread_mutex_t *);
00018 
00019 /* blocking */
00020 int         pthread_mutex_unlock(pthread_mutex_t *);
00021 
00022 #endif