@@ -83,13 +83,14 @@ * released. You can specify nil as object if you want the old object to be * released and don't want any new object for the TLS key. * * \param key The Thread Local Storage key * \param obj The object the Thread Local Storage key will be set to + * \return The old object, autoreleased */ -+ setObject: (OFObject*)obj - forTLSKey: (OFTLSKey*)key; ++ (id)setObject: (OFObject*)obj + forTLSKey: (OFTLSKey*)key; /** * Returns the object for the specified Thread Local Storage key. * * \param key The Thread Local Storage key @@ -147,11 +148,11 @@ - (void)handleTermination; /** * Starts the thread. */ -- start; +- (void)start; /** * Joins a thread. * * \return The object returned by the main method of the thread. @@ -173,11 +174,11 @@ + mutex; /** * Locks the mutex. */ -- lock; +- (void)lock; /** * Tries to lock the mutex and returns a boolean whether the mutex could be * acquired. * @@ -186,7 +187,7 @@ - (BOOL)tryLock; /** * Unlocks the mutex. */ -- unlock; +- (void)unlock; @end