[Issue 5356] New: receiveTimeout value < 500 does not work.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Dec 18 15:16:19 PST 2010


http://d.puremagic.com/issues/show_bug.cgi?id=5356

           Summary: receiveTimeout value < 500 does not work.
           Product: D
           Version: D2
          Platform: x86_64
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: druntime
        AssignedTo: sean at invisibleduck.org
        ReportedBy: joost.t.hart at planet.nl


--- Comment #0 from Joost <joost.t.hart at planet.nl> 2010-12-18 15:14:25 PST ---
See the code snippets below.

$ cat time.d
import std.concurrency;
import std.conv;

void run( long tim )
{
    foreach( dum; 0 .. 100 )
    {
        receiveTimeout( tim, (int x){} );
    }
}

void main( string[] args )
{
    run( to!long( args[1] ) );
}
$ time ./time 500

real    0m49.673s
user    0m0.000s
sys    0m0.000s
$ time ./time 499

real    0m0.972s
user    0m0.000s
sys    0m0.000s
$

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list