Changeset 397

Show
Ignore:
Timestamp:
07/21/08 11:01:44 (4 months ago)
Author:
FeepingCreature
Message:
  • Intrinsics not needed anymore
  • check made more verbose
Files:

Legend:

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

    r384 r397  
    8282        maker = m; 
    8383      } 
    84       private static void check(string s, int i) { if (i) throw new Exception(s~" failed!"); } 
     84      private static void check(string s, int i) { if (i) throw new Exception(Format(s, " failed : ", i, "!")); } 
    8585      void set(Ref r) { 
    8686        check("set:TlsSetValue", TlsSetValue(key, cast(void*) r)); 
     
    9292          res = maker(); 
    9393          synchronized(this) values ~= res; 
    94           check("TlsSetValue", TlsSetValue(key, cast(void*) res)); 
     94          check("ptr:TlsSetValue", TlsSetValue(key, cast(void*) res)); 
    9595        } 
    9696        return res;