aboutsummaryrefslogtreecommitdiff
path: root/src/libutil/serialise.hh
diff options
context:
space:
mode:
authorYorick van Pelt <yorick@yorickvanpelt.nl>2023-02-10 15:04:17 +0100
committerYorick van Pelt <yorick@yorickvanpelt.nl>2023-03-01 13:55:41 +0100
commit4c73eab92351e0942dc27f84fec1bf8c94619d02 (patch)
treeeebd297bf29b932dc88b05082df3c92d13d6bc1b /src/libutil/serialise.hh
parent53bb4a53279170c236c8a9252297b1132620f4ea (diff)
DisableGC: replace by CoroutineContext, std::shared_ptr<void>
Diffstat (limited to 'src/libutil/serialise.hh')
-rw-r--r--src/libutil/serialise.hh10
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)();
+
}