@@ -27,21 +27,21 @@ static OFList *tlskeys; static of_tlskey_t thread_self; static id -call_run(id obj) +call_main(id obj) { if (!of_tlskey_set(thread_self, obj)) @throw [OFInitializationFailedException newWithClass: [obj class]]; /* * Nasty workaround for thread implementations which can't return a * value on join. */ - ((OFThread*)obj)->retval = [[obj run] retain]; + ((OFThread*)obj)->retval = [[obj main] retain]; [obj handleTermination]; ((OFThread*)obj)->running = OF_THREAD_WAITING_FOR_JOIN; @@ -148,11 +148,11 @@ object = [obj retain]; return self; } -- (id)run +- (id)main { @throw [OFNotImplementedException newWithClass: isa selector: _cmd]; return nil; @@ -164,11 +164,11 @@ - start { [self retain]; - if (!of_thread_new(&thread, call_run, self)) { + if (!of_thread_new(&thread, call_main, self)) { [self release]; @throw [OFThreadStartFailedException newWithClass: isa]; } running = OF_THREAD_RUNNING;