Concord - C Discord API library
A Discord API wrapper library written in C
discord_refcounter Struct Reference

Automatically cleanup user data. More...

#include <discord-internal.h>

Collaboration diagram for discord_refcounter:
[legend]

Data Fields

struct logconf conf
 
int length
 
int capacity
 
struct _discord_ref * refs
 
pthread_mutex_t * g_lock
 

Detailed Description

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

Field Documentation

◆ conf

struct logconf discord_refcounter::conf

DISCORD_REFCOUNT logging module

◆ length

int discord_refcounter::length

amount of individual user's data held for automatic cleanup

◆ capacity

int discord_refcounter::capacity

cap before increase

◆ refs

struct _discord_ref* discord_refcounter::refs

individual user's data held for automatic cleanup

Note
datatype declared at discord-refcount.c

◆ g_lock

pthread_mutex_t* discord_refcounter::g_lock

global lock


The documentation for this struct was generated from the following file: