diff --git a/inc/Utils.h b/inc/Utils.h index d605577196602d7702c2fed4948a04e79207951e..b5025362114136f3f616177162281f1ed0d938a5 100644 --- a/inc/Utils.h +++ b/inc/Utils.h @@ -10,8 +10,8 @@ #include <stdio.h> #include <string.h> #include <sys/socket.h> -#include <arpa/inet.h> #include <sys/wait.h> +#include <arpa/inet.h> #ifdef __linux__ #include <bits/stdc++.h> #endif @@ -22,6 +22,9 @@ using std::get; using std::tuple_element; using std::tuple; +static pthread_mutex_t thread_counter_lock = PTHREAD_MUTEX_INITIALIZER; +static int thread_counter = 0; + vector<string> splitString(string s, string delimiter); string getIP(); string getIP(const char * host);