Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact

Changeset 2530

Show
Ignore:
Timestamp:
08/31/07 14:12:20 (1 year ago)
Author:
sean
Message:

Speculative fix for ticket #603.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lib/common/tango/core/Thread.d

    r2528 r2530  
    137137        import tango.stdc.posix.signal; 
    138138        import tango.stdc.posix.time; 
     139        import tango.stdc.errno; 
    139140 
    140141        version( GNU ) 
     
    776777            timespec tout = void; 
    777778 
    778             if( tin.tv_sec.max < i
     779            if( tin.tv_sec.max < period
    779780            { 
    780781                tin.tv_sec  = tin.tv_sec.max; 
     
    783784            else 
    784785            { 
    785                 tin.tv_sec  = i
    786                 tin.tv_nsec = (i % 1.0) * 1_000_000_000; 
     786                tin.tv_sec  = period
     787                tin.tv_nsec = (period % 1.0) * 1_000_000_000; 
    787788            } 
    788789