diff options
author | Yorick van Pelt <yorick@yorickvanpelt.nl> | 2023-02-10 15:04:17 +0100 |
---|---|---|
committer | Yorick van Pelt <yorick@yorickvanpelt.nl> | 2023-03-01 13:55:41 +0100 |
commit | 4c73eab92351e0942dc27f84fec1bf8c94619d02 (patch) | |
tree | eebd297bf29b932dc88b05082df3c92d13d6bc1b /src/libutil/serialise.hh | |
parent | 53bb4a53279170c236c8a9252297b1132620f4ea (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 fb1f14a3b..58b9499db 100644 --- a/src/libutil/serialise.hh +++ b/src/libutil/serialise.hh @@ -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)(); + } |