log_it(L_DEBUG,"Client send to thread %d",ev_data->number_thread);
if(ev_async_pending(&async_watchers[ev_data->number_thread])==false){//the event has not yet been processed (or even noted) by the event loop? (i.e. Is it serviced? If yes then proceed to)
// print_online();
log_it(L_DEBUG,"Client send to thread %d",ev_data->thread_number);
if(ev_async_pending(&async_watchers[ev_data->thread_number])==false){//the event has not yet been processed (or even noted) by the event loop? (i.e. Is it serviced? If yes then proceed to)
log_it(L_INFO,"ev_async_pending");
ev_async_send(listener_clients_loops[ev_data->number_thread],&async_watchers[ev_data->number_thread]);//Sends/signals/activates the given ev_async watcher, that is, feeds an EV_ASYNC event on the watcher into the event loop.
ev_async_send(listener_clients_loops[ev_data->thread_number],&async_watchers[ev_data->thread_number]);//Sends/signals/activates the given ev_async watcher, that is, feeds an EV_ASYNC event on the watcher into the event loop.
}
else
else{
log_it(L_ERROR,"Ev async error pending");
}
}
/**
...
...
@@ -384,7 +382,6 @@ void* thread_loop(void * arg)
intdap_server_loop(dap_server_t*sh)
{
intthread_arg[_count_threads];
pthread_tthread_listener[_count_threads];
for(size_ti=0;i<_count_threads;i++)
...
...
@@ -397,6 +394,7 @@ int dap_server_loop(dap_server_t * sh)