wMerge branch 'master' of github.com:berlin-open-wireless-lab/DAWN

This commit is contained in:
PolynomialDivision 2017-07-24 02:31:17 +02:00
commit fa52176cd8
2 changed files with 2 additions and 10 deletions

View file

@ -55,11 +55,8 @@ typedef struct client_s {
// Array // Array
#define ARRAY_CLIENT_LEN 1000 #define ARRAY_CLIENT_LEN 1000
#define TIME_THRESHOLD_CLIENT 60 #define TIME_THRESHOLD_CLIENT 5
#define TIME_THRESHOLD_CLIENT_UPDATE 10
struct client_s client_array[ARRAY_CLIENT_LEN]; struct client_s client_array[ARRAY_CLIENT_LEN];
pthread_mutex_t client_array_mutex; pthread_mutex_t client_array_mutex;

View file

@ -58,12 +58,7 @@ int main(int argc, char **argv) {
printf("\n mutex init failed\n"); printf("\n mutex init failed\n");
return 1; return 1;
} }
if (pthread_mutex_init(&send_mutex, NULL) != 0) {
printf("\n mutex init failed\n");
return 1;
}
init_socket_runopts(opt_broadcast_ip, opt_broadcast_port, 1); init_socket_runopts(opt_broadcast_ip, opt_broadcast_port, 1);
pthread_t tid_probe; pthread_t tid_probe;