Remove decide function

This commit is contained in:
PolynomialDivision 2017-09-22 17:07:34 +02:00
parent 5faea7f237
commit 45932ade66
2 changed files with 19 additions and 15 deletions

View file

@ -47,10 +47,10 @@ void daemon_shutdown()
// kill threads
printf("Cancelling Threads!\n");
pthread_cancel(tid_probe);
pthread_cancel(tid_client);
pthread_cancel(tid_get_client);
//pthread_cancel(tid_client);
// pthread_cancel(tid_get_client);
//pthread_cancel(tid_kick_clients);
pthread_cancel(tid_ap);
//pthread_cancel(tid_ap);
// free ressources
printf("Freeing mutex ressources\n");
@ -210,10 +210,10 @@ int main(int argc, char **argv) {
init_socket_runopts(opt_broadcast_ip, opt_broadcast_port, 1);
pthread_create(&tid_probe, NULL, &remove_array_thread, NULL);
pthread_create(&tid_client, NULL, &remove_client_array_thread, NULL);
pthread_create(&tid_get_client, NULL, &update_clients_thread, NULL);
//pthread_create(&tid_client, NULL, &remove_client_array_thread, NULL);
//pthread_create(&tid_get_client, NULL, &update_clients_thread, NULL);
//pthread_create(&tid_kick_clients, NULL, &kick_clients_thread, NULL);
pthread_create(&tid_ap, NULL, &remove_ap_array_thread, NULL);
//pthread_create(&tid_ap, NULL, &remove_ap_array_thread, NULL);
//pthread_create(&tid, NULL, &remove_thread, NULL);