@@ -66,10 +66,15 @@ return; if (!of_tlskey_new(&thread_self)) @throw [OFInitializationFailedException newWithClass: self]; } + ++ thread +{ + return [[[self alloc] init] autorelease]; +} + threadWithObject: (id)obj { return [[[self alloc] initWithObject: obj] autorelease]; } @@ -176,18 +181,10 @@ [thread release]; of_thread_exit(); } -- init -{ - Class c = isa; - [self release]; - @throw [OFNotImplementedException newWithClass: c - selector: _cmd]; -} - - initWithObject: (id)obj { self = [super init]; @try {