mirror of
https://github.com/NixOS/nix
synced 2025-06-29 02:11:15 +02:00
Factor out GC initialization code
This is not really part of the evaluator: it is just an integration between Boehm GC and Boost coroutines usable for any purpose. The evaluator (merely) optionally uses it.
This commit is contained in:
parent
7c2981fc55
commit
5b53d8fec3
4 changed files with 249 additions and 210 deletions
16
src/libexpr/eval-gc.hh
Normal file
16
src/libexpr/eval-gc.hh
Normal file
|
@ -0,0 +1,16 @@
|
|||
#pragma once
|
||||
///@file
|
||||
|
||||
namespace nix {
|
||||
|
||||
/**
|
||||
* Initialise the Boehm GC, if applicable.
|
||||
*/
|
||||
void initGC();
|
||||
|
||||
/**
|
||||
* Make sure `initGC` has already been called.
|
||||
*/
|
||||
void assertGCInitialized();
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue