Split up PosixEventDriver into individual classes.

This commit is contained in:
Sönke Ludwig 2016-10-12 22:59:15 +02:00
parent 2a44817911
commit c6dec730d8
6 changed files with 249 additions and 186 deletions

View file

@ -8,19 +8,19 @@ import std.socket : Address;
interface EventDriver {
@safe: /*@nogc:*/ nothrow:
@property EventDriverCore core();
@property EventDriverFiles files();
@property EventDriverSockets sockets();
@property EventDriverTimers timers();
@property EventDriverEvents events();
@property EventDriverSignals signals();
@property EventDriverSockets sockets();
@property EventDriverFiles files();
@property EventDriverWatchers watchers();
/// Releases all resources associated with the driver
void dispose();
}
interface EventDriverCore {
@safe: /*@nogc:*/ nothrow:
/// Releases all resources associated with the driver
void dispose();
/** The number of pending callbacks.
When this number drops to zero, the event loop can safely be quit. It is