PostgreSQL Source Code  git master
pthread-win32.h
Go to the documentation of this file.
1 /*
2  * src/port/pthread-win32.h
3  */
4 #ifndef __PTHREAD_H
5 #define __PTHREAD_H
6 
7 typedef ULONG pthread_key_t;
8 
9 typedef struct pthread_mutex_t
10 {
11  /* initstate = 0: not initialized; 1: init done; 2: init in progress */
12  LONG initstate;
13  CRITICAL_SECTION csection;
15 
16 #define PTHREAD_MUTEX_INITIALIZER { 0 }
17 
18 typedef int pthread_once_t;
19 
20 DWORD pthread_self(void);
21 
24 
25 int pthread_mutex_init(pthread_mutex_t *, void *attr);
27 
28 /* blocking */
30 
31 #endif
int pthread_mutex_unlock(pthread_mutex_t *)
Definition: pthread-win32.c:60
int pthread_mutex_init(pthread_mutex_t *, void *attr)
Definition: pthread-win32.c:35
void * pthread_getspecific(pthread_key_t)
Definition: pthread-win32.c:29
ULONG pthread_key_t
Definition: pthread-win32.h:7
int pthread_once_t
Definition: pthread-win32.h:18
int pthread_mutex_lock(pthread_mutex_t *)
Definition: pthread-win32.c:42
void pthread_setspecific(pthread_key_t, void *)
Definition: pthread-win32.c:24
DWORD pthread_self(void)
Definition: pthread-win32.c:18
struct pthread_mutex_t pthread_mutex_t
CRITICAL_SECTION csection
Definition: pthread-win32.h:13