blob: dc223c59054440d2c041b7879d2fa83523e00784 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#ifndef THREAD_H
# define THREAD_H
#ifdef THREADSAFECLIENT
#include <pthread.h>
typedef pthread_mutex_t _nast_mutex_t;
#else
typedef int _nast_mutex_t;
#endif
short thread_id();
int _nast_mutex_new(_nast_mutex_t *lock);
void _nast_mutex_delete(_nast_mutex_t *lock);
int _nast_mutex_lock(_nast_mutex_t *lock);
int _nast_mutex_unlock(_nast_mutex_t *lock);
#endif
|