Mark more classes as final.
This commit is contained in:
parent
59ac459cdf
commit
a60828d6da
|
@ -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); }
|
||||
|
||||
|
||||
package class VibedScheduler : Scheduler {
|
||||
package final class VibedScheduler : Scheduler {
|
||||
import core.sync.mutex;
|
||||
import vibe.core.core;
|
||||
import vibe.core.sync;
|
||||
|
|
|
@ -27,7 +27,7 @@ import vibe.internal.freelistref;
|
|||
reopen it if necessary. The `ConnectionPool` class has no knowledge of the
|
||||
internals of the connection objects.
|
||||
*/
|
||||
class ConnectionPool(Connection)
|
||||
final class ConnectionPool(Connection)
|
||||
{
|
||||
private {
|
||||
Connection delegate() @safe m_connectionFactory;
|
||||
|
|
|
@ -20,7 +20,7 @@ import std.traits : isFunctionPointer;
|
|||
|
||||
/** Implements a shared, multi-threaded task pool.
|
||||
*/
|
||||
shared class TaskPool {
|
||||
shared final class TaskPool {
|
||||
private {
|
||||
struct State {
|
||||
WorkerThread[] threads;
|
||||
|
@ -222,7 +222,7 @@ shared class TaskPool {
|
|||
}
|
||||
}
|
||||
|
||||
private class WorkerThread : Thread {
|
||||
private final class WorkerThread : Thread {
|
||||
private {
|
||||
shared(TaskPool) m_pool;
|
||||
TaskQueue m_queue;
|
||||
|
|
|
@ -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); }
|
||||
|
||||
private class InterfaceProxyClass(I, O) : I
|
||||
private final class InterfaceProxyClass(I, O) : I
|
||||
{
|
||||
import std.meta : AliasSeq;
|
||||
import std.traits : FunctionAttribute, MemberFunctionsTuple, ReturnType, ParameterTypeTuple, functionAttributes;
|
||||
|
|
Loading…
Reference in a new issue