Changeset 398

Show
Ignore:
Timestamp:
07/21/08 11:03:09 (4 months ago)
Author:
FeepingCreature
Message:
  • Error handling was the wrong way around
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/tools/tools/threads.d

    r397 r398  
    9292          res = maker(); 
    9393          synchronized(this) values ~= res; 
    94           check("ptr:TlsSetValue", TlsSetValue(key, cast(void*) res)); 
     94          if (!TlsSetValue(key, cast(void*) res)) throw new Exception("ptr:TlsSetValue failed"); 
    9595        } 
    9696        return res;