Concord - C Discord API library
A Discord API wrapper library written in C
discord-worker.h File Reference

Global threadpool. More...

#include "error.h"
Include dependency graph for discord-worker.h:

Go to the source code of this file.

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...
 

Detailed Description

Global threadpool.

Author
Cogmasters