Skip to content

Commit

Permalink
Some cleanup on imports and comments
Browse files Browse the repository at this point in the history
  • Loading branch information
dukc authored and wilzbach committed Jul 1, 2017
1 parent 5983bcc commit 942da35
Showing 1 changed file with 4 additions and 14 deletions.
18 changes: 4 additions & 14 deletions std/concurrency.d
Original file line number Diff line number Diff line change
Expand Up @@ -70,18 +70,11 @@ import core.sync.condition;
import core.sync.mutex;
import core.thread;
import std.range.primitives;
import std.range.interfaces : InputRange;
import std.traits;

private
{
import core.atomic;
import core.thread;
import core.sync.mutex;
import core.sync.condition;
import std.range.primitives;
import std.range.interfaces;
import std.traits;

template hasLocalAliasing(T...)
{
static if (!T.length)
Expand Down Expand Up @@ -1602,8 +1595,8 @@ class Generator(T) :
}

/**
* Returns the most recently generated value without excuting a copy
* contructor. Will not compile for element types defining a
* Returns the most recently generated value without executing a
* copy contructor. Will not compile for element types defining a
* postblit, because Generator does not return by reference.
*/
final T moveFront()
Expand All @@ -1615,7 +1608,7 @@ class Generator(T) :
else
{
static assert(0,
"Fiber front is rvalue and thus cannot be moved when it defines a postblit.");
"Fiber front is always rvalue and thus cannot be moved since it defines a postblit.");
}
}

Expand Down Expand Up @@ -1672,7 +1665,6 @@ void yield(T)(T value)
{
import core.exception;
import std.exception;
import std.range.interfaces;

static void testScheduler(Scheduler s)
{
Expand Down Expand Up @@ -1710,7 +1702,6 @@ void yield(T)(T value)
{
tid.send(e);
}

});
scheduler = null;
}
Expand Down Expand Up @@ -1752,7 +1743,6 @@ void yield(T)(T value)
assert(counter == [7, 21]);
}

// MessageBox Implementation
private
{
/*
Expand Down

0 comments on commit 942da35

Please sign in to comment.