Concord - C Discord API library
A Discord API wrapper library written in C
discord-worker.h
Go to the documentation of this file.
1
7#ifndef DISCORD_WORKER_H
8#define DISCORD_WORKER_H
9
10#include "error.h"
11
12/* forward declaration */
13struct discord;
14
15
26
29
39 void (*callback)(void *data),
40 void *data);
41
49
52#endif /* DISCORD_WORKER_H */
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