2008-05-17 03:28:26 +02:00
|
|
|
/*
|
2008-05-21 16:20:48 +02:00
|
|
|
* $PostgreSQL: pgsql/src/port/pthread-win32.h,v 1.5 2008/05/21 14:20:48 mha Exp $
|
2008-05-17 03:28:26 +02:00
|
|
|
*/
|
2004-06-19 06:22:17 +02:00
|
|
|
#ifndef __PTHREAD_H
|
|
|
|
#define __PTHREAD_H
|
|
|
|
|
|
|
|
typedef ULONG pthread_key_t;
|
2008-05-21 16:20:48 +02:00
|
|
|
typedef CRITICAL_SECTION *pthread_mutex_t;
|
2004-06-19 06:22:17 +02:00
|
|
|
typedef int pthread_once_t;
|
|
|
|
|
2007-04-18 10:32:40 +02:00
|
|
|
DWORD pthread_self(void);
|
2004-06-19 06:22:17 +02:00
|
|
|
|
2005-10-15 04:49:52 +02:00
|
|
|
void pthread_setspecific(pthread_key_t, void *);
|
|
|
|
void *pthread_getspecific(pthread_key_t);
|
2004-06-19 06:22:17 +02:00
|
|
|
|
2008-05-17 01:57:42 +02:00
|
|
|
int pthread_mutex_init(pthread_mutex_t *, void *attr);
|
|
|
|
int pthread_mutex_lock(pthread_mutex_t *);
|
2005-10-15 04:49:52 +02:00
|
|
|
|
2005-11-22 19:17:34 +01:00
|
|
|
/* blocking */
|
2008-05-17 01:57:42 +02:00
|
|
|
int pthread_mutex_unlock(pthread_mutex_t *);
|
2004-06-19 06:22:17 +02:00
|
|
|
|
|
|
|
#endif
|