Mark more classes as final.

This commit is contained in:
Sönke Ludwig 2017-07-23 15:04:11 +02:00
parent 59ac459cdf
commit a60828d6da
4 changed files with 5 additions and 5 deletions

View file

@ -1226,7 +1226,7 @@ void prioritySend(ARGS...)(Task task, ARGS args) { std.concurrency.prioritySend(
void prioritySend(ARGS...)(Tid tid, ARGS args) { std.concurrency.prioritySend(tid, args); } void prioritySend(ARGS...)(Tid tid, ARGS args) { std.concurrency.prioritySend(tid, args); }
package class VibedScheduler : Scheduler { package final class VibedScheduler : Scheduler {
import core.sync.mutex; import core.sync.mutex;
import vibe.core.core; import vibe.core.core;
import vibe.core.sync; import vibe.core.sync;

View file

@ -27,7 +27,7 @@ import vibe.internal.freelistref;
reopen it if necessary. The `ConnectionPool` class has no knowledge of the reopen it if necessary. The `ConnectionPool` class has no knowledge of the
internals of the connection objects. internals of the connection objects.
*/ */
class ConnectionPool(Connection) final class ConnectionPool(Connection)
{ {
private { private {
Connection delegate() @safe m_connectionFactory; Connection delegate() @safe m_connectionFactory;

View file

@ -20,7 +20,7 @@ import std.traits : isFunctionPointer;
/** Implements a shared, multi-threaded task pool. /** Implements a shared, multi-threaded task pool.
*/ */
shared class TaskPool { shared final class TaskPool {
private { private {
struct State { struct State {
WorkerThread[] threads; WorkerThread[] threads;
@ -222,7 +222,7 @@ shared class TaskPool {
} }
} }
private class WorkerThread : Thread { private final class WorkerThread : Thread {
private { private {
shared(TaskPool) m_pool; shared(TaskPool) m_pool;
TaskQueue m_queue; TaskQueue m_queue;

View file

@ -10,7 +10,7 @@ InterfaceProxyClass!(I, O) asInterface(I, O)(O obj) if (is(I == interface) && !i
InterfaceProxy!I interfaceProxy(I, O)(O o) { return InterfaceProxy!I(o); } InterfaceProxy!I interfaceProxy(I, O)(O o) { return InterfaceProxy!I(o); }
private class InterfaceProxyClass(I, O) : I private final class InterfaceProxyClass(I, O) : I
{ {
import std.meta : AliasSeq; import std.meta : AliasSeq;
import std.traits : FunctionAttribute, MemberFunctionsTuple, ReturnType, ParameterTypeTuple, functionAttributes; import std.traits : FunctionAttribute, MemberFunctionsTuple, ReturnType, ParameterTypeTuple, functionAttributes;