D: Fix li_boost_shared_ptr_runme.2.d compilation.
The overload of Thread.sleep taking a bare integer has been deprecated/removed.
This commit is contained in:
parent
45b9070a1d
commit
bb768f5aa5
1 changed files with 2 additions and 1 deletions
|
|
@ -2,6 +2,7 @@ module li_boost_shared_ptr_runme;
|
||||||
|
|
||||||
import core.memory;
|
import core.memory;
|
||||||
import core.thread;
|
import core.thread;
|
||||||
|
import core.time;
|
||||||
import std.conv;
|
import std.conv;
|
||||||
import std.exception;
|
import std.exception;
|
||||||
import std.stdio;
|
import std.stdio;
|
||||||
|
|
@ -37,7 +38,7 @@ void main() {
|
||||||
GC.collect();
|
GC.collect();
|
||||||
if (Klass.getTotal_count() == 1)
|
if (Klass.getTotal_count() == 1)
|
||||||
break;
|
break;
|
||||||
Thread.sleep(100);
|
Thread.sleep(100.usecs);
|
||||||
}
|
}
|
||||||
|
|
||||||
// A single remaining instance expected: the global variable (GlobalValue).
|
// A single remaining instance expected: the global variable (GlobalValue).
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue