mirror of
https://github.com/NixOS/nix
synced 2025-06-25 23:11:16 +02:00
nix_api_expr: add nix_gc_now()
This commit is contained in:
parent
ded0ef6f6c
commit
ada2af4f88
2 changed files with 12 additions and 2 deletions
|
@ -128,6 +128,13 @@ void nix_gc_incref(const void *);
|
|||
*/
|
||||
void nix_gc_decref(const void *);
|
||||
|
||||
/**
|
||||
* @brief Trigger the garbage collector manually
|
||||
*
|
||||
* You should not need to do this, but it can be useful for debugging.
|
||||
*/
|
||||
void nix_gc_now();
|
||||
|
||||
/**
|
||||
* @brief Register a callback that gets called when the object is garbage
|
||||
* collected.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue