Rename async.loop.Loop.done_ to done

Since there is no property with a conflicting name.
This commit is contained in:
Eugen Wissner 2017-02-04 14:55:52 +01:00
parent 241767df13
commit 43c28b749d
4 changed files with 12 additions and 6 deletions

View File

@ -130,6 +130,8 @@ alias EventMask = BitFlags!Event;
*/
abstract class Loop
{
private bool done;
/// Pending watchers.
protected Queue!Watcher pendings;
@ -167,7 +169,7 @@ abstract class Loop
*/
void run() @nogc
{
done_ = false;
done = false;
do
{
poll();
@ -178,7 +180,7 @@ abstract class Loop
w.invoke();
}
}
while (!done_);
while (!done);
}
/**
@ -186,7 +188,7 @@ abstract class Loop
*/
void unloop() @safe pure nothrow @nogc
{
done_ = true;
done = true;
}
/**
@ -202,6 +204,7 @@ abstract class Loop
return;
}
watcher.active = true;
reify(watcher, EventMask(Event.none), EventMask(Event.accept));
}
@ -281,9 +284,6 @@ abstract class Loop
*/
abstract protected void poll() @nogc;
/// Whether the event loop should be stopped.
private bool done_;
/// Maximal block time.
protected Duration blockTime_ = 1.dur!"minutes";
}

View File

@ -322,6 +322,8 @@ struct SList(T)
*
* Params:
* dg = $(D_KEYWORD foreach) body.
*
* Returns: The value returned from $(D_PARAM dg).
*/
int opApply(scope int delegate(ref size_t i, ref T) @nogc dg)
{

View File

@ -190,6 +190,8 @@ struct Queue(T)
*
* Params:
* dg = $(D_KEYWORD foreach) body.
*
* Returns: The value returned from $(D_PARAM dg).
*/
int opApply(scope int delegate(ref size_t i, ref T) @nogc dg)
{

View File

@ -1123,6 +1123,8 @@ struct Vector(T)
*
* Params:
* dg = $(D_KEYWORD foreach) body.
*
* Returns: The value returned from $(D_PARAM dg).
*/
int opApply(scope int delegate(ref T) @nogc dg)
{