|
Concord - C Discord API library
A Discord API wrapper library written in C
|
A global threadpool for worker-threads handling. More...
Functions | |
| int | discord_worker_global_init (void) |
| Initialize global threadpool and priority queue. More... | |
| void | discord_worker_global_cleanup (void) |
| Cleanup global threadpool and priority queue. More... | |
| CCORDcode | discord_worker_add (struct discord *client, void(*callback)(void *data), void *data) |
| Run a callback from a worker thread. More... | |
| CCORDcode | discord_worker_join (struct discord *client) |
Wait until worker-threads being used by client have been joined. More... | |
A global threadpool for worker-threads handling.
| int discord_worker_global_init | ( | void | ) |
Initialize global threadpool and priority queue.
0 on success, 1 if it has already been initialized | void discord_worker_global_cleanup | ( | void | ) |
Cleanup global threadpool and priority queue.