From 59ac459cdf7bed5f1b5811bfcc759071e97faf2d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6nke=20Ludwig?= Date: Sun, 23 Jul 2017 14:57:48 +0200 Subject: [PATCH] Mark all synchronization classes final. Those classes are not meant as being derived from. --- source/vibe/core/sync.d | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/source/vibe/core/sync.d b/source/vibe/core/sync.d index aaf298f..49eb242 100644 --- a/source/vibe/core/sync.d +++ b/source/vibe/core/sync.d @@ -138,7 +138,7 @@ unittest { is used in `vibe.core.connectionpool` to limit the number of concurrent connections. */ -class LocalTaskSemaphore +final class LocalTaskSemaphore { @safe: @@ -273,7 +273,7 @@ class LocalTaskSemaphore See_Also: InterruptibleTaskMutex, RecursiveTaskMutex, core.sync.mutex.Mutex */ -class TaskMutex : core.sync.mutex.Mutex, Lockable { +final class TaskMutex : core.sync.mutex.Mutex, Lockable { @safe: private TaskMutexImpl!false m_impl; @@ -408,7 +408,7 @@ unittest { See_Also: TaskMutex, core.sync.mutex.Mutex */ -class RecursiveTaskMutex : core.sync.mutex.Mutex, Lockable { +final class RecursiveTaskMutex : core.sync.mutex.Mutex, Lockable { @safe: private RecursiveTaskMutexImpl!false m_impl; @@ -576,7 +576,7 @@ private void runMutexUnitTests(M)() See_Also: InterruptibleTaskCondition */ -class TaskCondition : core.sync.condition.Condition { +final class TaskCondition : core.sync.condition.Condition { @safe: private TaskConditionImpl!(false, Mutex) m_impl; @@ -1905,7 +1905,7 @@ private struct ReadWriteMutexState(bool INTERRUPTIBLE) * * cf. $(D core.sync.mutex.ReadWriteMutex) */ -class TaskReadWriteMutex +final class TaskReadWriteMutex { private { alias State = ReadWriteMutexState!false; @@ -1970,7 +1970,7 @@ class TaskReadWriteMutex * * cf. $(D core.sync.mutex.ReadWriteMutex) */ -class InterruptibleTaskReadWriteMutex +final class InterruptibleTaskReadWriteMutex { @safe: