summaryrefslogtreecommitdiff
path: root/librabbitmq/win32/threads.h
blob: 7cf6ca5154655c0e11a26566d3bfe36f4bf806d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#ifndef AMQP_THREAD_H
#define AMQP_THREAD_H

#include <Windows.h>

typedef CRITICAL_SECTION *pthread_mutex_t;
typedef int pthread_once_t;

DWORD pthread_self(void);

int pthread_mutex_init(pthread_mutex_t *, void *attr);
int pthread_mutex_lock(pthread_mutex_t *);
int pthread_mutex_unlock(pthread_mutex_t *);
#endif /* AMQP_THREAD_H */