Differences From Artifact [cc3937ad7a]:
- File
src/OFThread.h
— part of check-in
[e2b06423e0]
at
2010-09-05 23:19:08
on branch trunk
— Replace OFObject* with id in many places.
We assume now that every object understands retain, release, etc. so
that we can weaken the type from OFObject* to id. This makes it
possible to use different root object classes. (user: js, size: 4134) [annotate] [blame] [check-ins using]
To Artifact [7bb5f669dd]:
- File src/OFThread.h — part of check-in [f1d813ef6a] at 2010-11-06 11:44:41 on branch trunk — More reliable cleanup on failure in OFMutex and OFTLSKey. (user: js, size: 4172) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
20 21 22 23 24 25 26 27 28 29 30 31 32 33 | @interface OFTLSKey: OFObject { @public of_tlskey_t key; @protected void (*destructor)(id); of_list_object_t *listobj; } /** * \return A new autoreleased Thread Local Storage key */ + tlsKey; | > | 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 | @interface OFTLSKey: OFObject { @public of_tlskey_t key; @protected void (*destructor)(id); of_list_object_t *listobj; BOOL initialized; } /** * \return A new autoreleased Thread Local Storage key */ + tlsKey; |
︙ | ︙ | |||
165 166 167 168 169 170 171 172 173 174 175 176 177 178 | /** * \brief A class for creating mutual exclusions. */ @interface OFMutex: OFObject { of_mutex_t mutex; } /** * \return A new autoreleased mutex. */ + mutex; | > | 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 | /** * \brief A class for creating mutual exclusions. */ @interface OFMutex: OFObject { of_mutex_t mutex; BOOL initialized; } /** * \return A new autoreleased mutex. */ + mutex; |
︙ | ︙ |