OSDN Git Service

Update a number of broken links in comments.
[pg-rex/syncrep.git] / src / port / pthread-win32.h
1 /*
2  * $PostgreSQL: pgsql/src/port/pthread-win32.h,v 1.6 2009/06/11 14:49:15 momjian Exp $
3  */
4 #ifndef __PTHREAD_H
5 #define __PTHREAD_H
6
7 typedef ULONG pthread_key_t;
8 typedef CRITICAL_SECTION *pthread_mutex_t;
9 typedef int pthread_once_t;
10
11 DWORD           pthread_self(void);
12
13 void            pthread_setspecific(pthread_key_t, void *);
14 void       *pthread_getspecific(pthread_key_t);
15
16 int                     pthread_mutex_init(pthread_mutex_t *, void *attr);
17 int                     pthread_mutex_lock(pthread_mutex_t *);
18
19 /* blocking */
20 int                     pthread_mutex_unlock(pthread_mutex_t *);
21
22 #endif