aboutsummaryrefslogtreecommitdiff
path: root/src/libutil/serialise.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/libutil/serialise.hh')
-rw-r--r--src/libutil/serialise.hh10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/libutil/serialise.hh b/src/libutil/serialise.hh
index 7da5b07fd..fb1f14a3b 100644
--- a/src/libutil/serialise.hh
+++ b/src/libutil/serialise.hh
@@ -501,4 +501,14 @@ struct StackAllocator {
static StackAllocator *defaultAllocator;
};
+/* Disabling GC when entering a coroutine (on macos).
+ ::create is to avoid boehm gc dependency in libutil.
+ */
+class DisableGC {
+public:
+ DisableGC() {};
+ virtual ~DisableGC() {};
+ static std::shared_ptr<DisableGC> (*create)();
+};
+
}