@@ -565,14 +565,14 @@ package(core.thread):
565565 __gshared align (mutexAlign) void [mutexClassInstanceSize] _slock;
566566 __gshared align (mutexAlign) void [mutexClassInstanceSize] _criticalRegionLock;
567567
568- static void initLocks () @nogc
568+ static void initLocks () @nogc nothrow
569569 {
570570 import core.lifetime : emplace;
571571 emplace! Mutex (_slock[]);
572572 emplace! Mutex (_criticalRegionLock[]);
573573 }
574574
575- static void termLocks () @nogc
575+ static void termLocks () @nogc nothrow
576576 {
577577 (cast (Mutex )_slock.ptr).__dtor();
578578 (cast (Mutex )_criticalRegionLock.ptr).__dtor();
@@ -752,13 +752,13 @@ package(core.thread):
752752
753753private alias attachThread = externDFunc! (" core.thread.osthread.attachThread" , ThreadBase function (ThreadBase) @nogc nothrow );
754754
755- extern (C ) void _d_monitordelete_nogc(Object h) @nogc ;
755+ extern (C ) void _d_monitordelete_nogc(Object h) @nogc nothrow ;
756756
757757/**
758758 * Terminates the thread module. No other thread routine may be called
759759 * afterwards.
760760 */
761- package void thread_term_tpl(ThreadT, MainThreadStore)(ref MainThreadStore _mainThreadStore) @nogc
761+ package void thread_term_tpl(ThreadT, MainThreadStore)(ref MainThreadStore _mainThreadStore) @nogc nothrow
762762{
763763 assert (_mainThreadStore.ptr is cast (void * ) ThreadBase.sm_main);
764764
@@ -1328,13 +1328,13 @@ package
13281328 return cast (Mutex )ll_lock.ptr;
13291329 }
13301330
1331- void initLowlevelThreads () @nogc
1331+ void initLowlevelThreads () @nogc nothrow
13321332 {
13331333 import core.lifetime : emplace;
13341334 emplace(lowlevelLock());
13351335 }
13361336
1337- void termLowlevelThreads () @nogc
1337+ void termLowlevelThreads () @nogc nothrow
13381338 {
13391339 lowlevelLock.__dtor();
13401340 }
0 commit comments