7#ifndef DISCORD_WORKER_H
8#define DISCORD_WORKER_H
39 void (*callback)(
void *
data),
CCORDcode
Definition: error.h:12
CCORDcode discord_worker_add(struct discord *client, void(*callback)(void *data), void *data)
Run a callback from a worker thread.
int discord_worker_global_init(void)
Initialize global threadpool and priority queue.
CCORDcode discord_worker_join(struct discord *client)
Wait until worker-threads being used by client have been joined.
void discord_worker_global_cleanup(void)
Cleanup global threadpool and priority queue.
The Discord client handler.
Definition: discord-internal.h:1190
void * data
Definition: discord-internal.h:1236