Skip to content

Commit 0706b67

Browse files
authored
Merge pull request #264 from vibe-d/taskmutex_nothrow
Mark the TaskMutex constructor nothrow
2 parents 35316c3 + 4a72acc commit 0706b67

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/vibe/core/sync.d

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -327,8 +327,8 @@ final class TaskMutex : core.sync.mutex.Mutex, Lockable {
327327
@safe:
328328
private TaskMutexImpl!false m_impl;
329329

330-
this(Object o) { m_impl.setup(); super(o); }
331-
this() { m_impl.setup(); }
330+
this(Object o) nothrow { m_impl.setup(); super(o); }
331+
this() nothrow { m_impl.setup(); }
332332

333333
override bool tryLock() nothrow { return m_impl.tryLock(); }
334334
override void lock() nothrow { m_impl.lock(); }

0 commit comments

Comments
 (0)