Changeset 397
- Timestamp:
- 07/21/08 11:01:44 (4 months ago)
- Files:
-
- trunk/tools/tools/threads.d (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/tools/tools/threads.d
r384 r397 82 82 maker = m; 83 83 } 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, "!")); } 85 85 void set(Ref r) { 86 86 check("set:TlsSetValue", TlsSetValue(key, cast(void*) r)); … … 92 92 res = maker(); 93 93 synchronized(this) values ~= res; 94 check(" TlsSetValue", TlsSetValue(key, cast(void*) res));94 check("ptr:TlsSetValue", TlsSetValue(key, cast(void*) res)); 95 95 } 96 96 return res;
