mirror of
https://github.com/dlang/phobos.git
synced 2025-05-07 11:37:24 +03:00
Issue 4406 - Typo (bug) in std.concurrency
Fixed.
This commit is contained in:
parent
f92cbf1534
commit
99d6af1e86
1 changed files with 5 additions and 4 deletions
|
@ -596,21 +596,22 @@ private
|
|||
* if the owner thread terminates and no existing messages match the
|
||||
* supplied ops.
|
||||
*/
|
||||
final void get(T...)( T ops )
|
||||
final void get(T...)( T vals )
|
||||
{
|
||||
static assert( T.length );
|
||||
|
||||
static if( isImplicitlyConvertible!(T[0], long) )
|
||||
{
|
||||
alias TypeTuple!(T[1 .. $]) Ops;
|
||||
alias vals[1 .. $] ops;
|
||||
assert( vals[0] >= 0 );
|
||||
enum timedWait = true;
|
||||
assert( ops[0] >= 0 );
|
||||
long period = ops[0];
|
||||
ops = ops[1 .. $];
|
||||
long period = vals[0];
|
||||
}
|
||||
else
|
||||
{
|
||||
alias TypeTuple!(T) Ops;
|
||||
alias vals[0 .. $] ops;
|
||||
enum timedWait = false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue