libGimbal 0.1.0
C17-Based Extended Standard Library and Cross-Language Runtime Framework
|
Go to the source code of this file.
Macros | |
#define | GblRef_create(...) |
#define | GblRef_ref(ref) |
#define | GblRef_unref(...) |
#define | GblRef_create__1(size) |
#define | GblRef_create__2(size, ctx) |
#define | GblRef_unref__1(ref) |
#define | GblRef_unref__2(ref, dtor) |
Typedefs | |
typedef void | GblRef |
typedef GBL_RESULT(* | GblRefDestructFn) (GblRef *pSelf) |
Functions | |
GBL_RESULT | GblRef_reinit (void) |
GblRefCount | GblRef_activeCount (void) |
void * | GblRef_alloc (size_t size) |
void * | GblRef_allocWithContext (size_t size, GblContext *pCtx) |
void * | GblRef_acquire (const GblRef *pSelf) |
GblRefCount | GblRef_release (const GblRef *pSelf) |
GblRefCount | GblRef_releaseWithDtor (const GblRef *pSelf, GblRefDestructFn pFnDtor) |
GblRefCount | GblRef_refCount (const GblRef *pSelf) |
GblContext * | GblRef_context (const GblRef *pSelf) |
Generic reference-counted pointers.
This file contains GblRef, an atomic reference-counted shared pointer type, as well as its associated API.
Definition in file gimbal_ref.h.
#define GblRef_create | ( | ... | ) |
Definition at line 48 of file gimbal_ref.h.
#define GblRef_ref | ( | ref | ) |
Definition at line 49 of file gimbal_ref.h.
#define GblRef_unref | ( | ... | ) |
Definition at line 50 of file gimbal_ref.h.
#define GblRef_create__1 | ( | size | ) |
Definition at line 52 of file gimbal_ref.h.
#define GblRef_create__2 | ( | size, | |
ctx | |||
) |
Definition at line 53 of file gimbal_ref.h.
#define GblRef_unref__1 | ( | ref | ) |
Definition at line 55 of file gimbal_ref.h.
#define GblRef_unref__2 | ( | ref, | |
dtor | |||
) |
Definition at line 56 of file gimbal_ref.h.
typedef GBL_RESULT(* GblRefDestructFn) (GblRef *pSelf) |
Definition at line 31 of file gimbal_ref.h.