Added a notification mechanism for sending messages from

another thread to the mainthread in a safe manner.

This is used for the DNS lookup code, and can also
be used by the signal handler to safely report actions back
to the application mainloop without using global variables.
This commit is contained in:
Jan Vidar Krey
2014-08-05 16:21:56 +02:00
parent 1526d63403
commit 46bdc77066
6 changed files with 175 additions and 20 deletions

View File

@@ -141,7 +141,7 @@ int net_backend_process()
}
// Process pending DNS results
net_dns_process();
// net_dns_process();
g_backend->handler.backend_process(g_backend->data, res);