|
Concord - C Discord API library
A Discord API wrapper library written in C
|
Automatically cleanup user data. More...
#include <discord-internal.h>
Data Fields | |
| struct logconf | conf |
| int | length |
| int | capacity |
| struct _discord_ref * | refs |
| pthread_mutex_t * | g_lock |
Automatically cleanup user data.
Automatically cleanup user data that is passed around Discord event's callbacks once its reference counter reaches 0, meaning there are no more callbacks expecting the data
| struct logconf discord_refcounter::conf |
DISCORD_REFCOUNT logging module
| int discord_refcounter::length |
amount of individual user's data held for automatic cleanup
| int discord_refcounter::capacity |
cap before increase
| struct _discord_ref* discord_refcounter::refs |
individual user's data held for automatic cleanup
| pthread_mutex_t* discord_refcounter::g_lock |
global lock