Reduct  v4.0.5-1-g4851deb
A functional and immutable language.
Loading...
Searching...
No Matches
gc.h File Reference

Garbage collection. More...

#include "reduct/sync.h"
#include <reduct/defs.h>
#include <reduct/handle.h>
#include <reduct/item.h>
Include dependency graph for gc.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  reduct_gc_global_t
 Global garbage collection-related state structure. More...
 

Macros

#define REDUCT_GC_CHECK(_reduct)
 Check if the garbage collector should be ran and run it if so.
 

Functions

REDUCT_API void reduct_gc_global_init (reduct_gc_global_t *global)
 Initialize a global gc state.
 
REDUCT_API void reduct_gc_global_deinit (reduct_gc_global_t *global)
 Deinitialize a global gc state.
 
REDUCT_API void reduct_gc (struct reduct *reduct)
 Run the garbage collector.
 
static REDUCT_ALWAYS_INLINE void reduct_gc_request (reduct_gc_global_t *gc)
 Request that the garbage collector be ran without immediately running it.
 

Detailed Description

Garbage collection.

Definition in file gc.h.