mirror of
https://github.com/NixOS/nix
synced 2025-07-06 09:11:47 +02:00
DisableGC: replace by CoroutineContext, std::shared_ptr<void>
This commit is contained in:
parent
53bb4a5327
commit
4c73eab923
3 changed files with 34 additions and 34 deletions
|
@ -502,13 +502,9 @@ struct StackAllocator {
|
|||
};
|
||||
|
||||
/* Disabling GC when entering a coroutine (on macos).
|
||||
::create is to avoid boehm gc dependency in libutil.
|
||||
mutable to avoid boehm gc dependency in libutil.
|
||||
*/
|
||||
class DisableGC {
|
||||
public:
|
||||
DisableGC() {};
|
||||
virtual ~DisableGC() {};
|
||||
static std::shared_ptr<DisableGC> (*create)();
|
||||
};
|
||||
extern std::shared_ptr<void> (*create_disable_gc)();
|
||||
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue