diff options
author | Yorick van Pelt <yorick@yorickvanpelt.nl> | 2023-02-10 15:04:17 +0100 |
---|---|---|
committer | Théophane Hufschmitt <theophane.hufschmitt@tweag.io> | 2023-04-07 14:53:40 +0200 |
commit | 00bc34430b9e8e687cd3f1681e9f7b5baa7c717e (patch) | |
tree | e4631f9063041413967f9799793e9599a1b12341 /src/libutil/serialise.hh | |
parent | 2c53ef1bfee7c7afea889f42b9ef13e1007ad228 (diff) |
DisableGC: replace by CoroutineContext, std::shared_ptr<void>
Diffstat (limited to 'src/libutil/serialise.hh')
-rw-r--r-- | src/libutil/serialise.hh | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/libutil/serialise.hh b/src/libutil/serialise.hh index 612196fd2..b895db779 100644 --- a/src/libutil/serialise.hh +++ b/src/libutil/serialise.hh @@ -552,13 +552,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)(); + } |