mirror of
https://github.com/berlin-open-wireless-lab/DAWN.git
synced 2025-03-09 15:40:12 +00:00
Remove decide function
This commit is contained in:
parent
5faea7f237
commit
45932ade66
2 changed files with 19 additions and 15 deletions
12
src/main.c
12
src/main.c
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue