summaryrefslogtreecommitdiff
path: root/libphobos/libdruntime/rt/critical_.d
diff options
context:
space:
mode:
Diffstat (limited to 'libphobos/libdruntime/rt/critical_.d')
-rw-r--r--libphobos/libdruntime/rt/critical_.d4
1 files changed, 2 insertions, 2 deletions
diff --git a/libphobos/libdruntime/rt/critical_.d b/libphobos/libdruntime/rt/critical_.d
index ae181228b5c..36552a3ce1a 100644
--- a/libphobos/libdruntime/rt/critical_.d
+++ b/libphobos/libdruntime/rt/critical_.d
@@ -18,13 +18,13 @@ nothrow:
import rt.monitor_, core.atomic;
-extern (C) void _d_critical_init()
+extern (C) void _d_critical_init() @nogc nothrow
{
initMutex(cast(Mutex*)&gcs.mtx);
head = &gcs;
}
-extern (C) void _d_critical_term()
+extern (C) void _d_critical_term() @nogc nothrow
{
// This function is only ever called by the runtime shutdown code
// and therefore is single threaded so the following cast is fine.