Make event loop implementations final

This commit is contained in:
2017-02-10 19:19:37 +01:00
parent 44ac15ab78
commit b74e5aa4ee
5 changed files with 5 additions and 82 deletions

View File

@ -34,7 +34,7 @@ extern (C) nothrow @nogc
int epoll_wait (int epfd, epoll_event *events, int maxevents, int timeout);
}
class EpollLoop : SelectorLoop
final class EpollLoop : SelectorLoop
{
protected int fd;
private Vector!epoll_event events;

View File

@ -26,7 +26,7 @@ import core.sys.windows.winbase;
import core.sys.windows.windef;
import core.sys.windows.winsock2;
class IOCPStreamTransport : StreamTransport
final class IOCPStreamTransport : StreamTransport
{
private WriteBuffer!ubyte input;
@ -106,7 +106,7 @@ class IOCPStreamTransport : StreamTransport
}
}
class IOCPLoop : Loop
final class IOCPLoop : Loop
{
protected HANDLE completionPort;

View File

@ -113,7 +113,7 @@ extern(C) int kevent(int kq, const kevent_t *changelist, int nchanges,
kevent_t *eventlist, int nevents, const timespec *timeout)
nothrow @nogc;
class KqueueLoop : SelectorLoop
final class KqueueLoop : SelectorLoop
{
protected int fd;
private Vector!kevent_t events;

View File

@ -25,7 +25,7 @@ import tanya.network.socket;
/**
* Transport for stream sockets.
*/
class SelectorStreamTransport : IOWatcher, StreamTransport
final class SelectorStreamTransport : IOWatcher, StreamTransport
{
/// Input buffer.
package WriteBuffer!ubyte input;