1
0
mirror of https://github.com/rofl0r/proxychains-ng synced 2026-06-08 16:24:26 +08:00

use macros for mutex stuff

This commit is contained in:
rofl0r
2012-01-27 21:30:42 +01:00
Unverified
parent c36db11ebc
commit 070051bb73
3 changed files with 13 additions and 19 deletions
+7
View File
@@ -40,6 +40,13 @@ extern internal_ip_lookup_table internal_ips;
#ifdef THREAD_SAFE
#include <pthread.h>
extern pthread_mutex_t internal_ips_lock;
# define MUTEX_LOCK(x) pthread_mutex_lock(x)
# define MUTEX_UNLOCK(x) pthread_mutex_unlock(x)
# define MUTEX_INIT(x,y) pthread_mutex_init(x, y)
#else
# define MUTEX_LOCK(x)
# define MUTEX_UNLOCK(x)
# define MUTEX_INIT(x,y)
#endif
/*error codes*/