Use futex instead of pthread_mutex on Linux

This commit is contained in:
z3APA3A committed 2018-12-28 18:49:45 +03:00
1 parent 6fe36b01d1
commit 930d9823ea
3 files changed
+52 -1

No files matched your search

+2
View File
@@ -107,6 +107,7 @@ int splicemap(struct clientparam * param, int timeo){
while((!stop || (inclipipe && param->remsock != INVALID_SOCKET) || (insrvpipe && param->clisock != INVALID_SOCKET)) && !conf.timetoexit){
param->cycles++;
#ifdef NOIPV6
sasize = sizeof(struct sockaddr_in);
#else
@@ -367,6 +368,7 @@ int sockmap(struct clientparam * param, int timeo){
while (!stop&&!conf.timetoexit){
param->cycles++;
#ifdef NOIPV6
sasize = sizeof(struct sockaddr_in);
#else