ObjFW  Check-in [7e5de0a086]

Overview
Comment:Improve documentation.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 7e5de0a086ddac4b07f375d5f09e2506b20eaecfa86f67c268ca426240351ed7
User & Date: js on 2013-07-24 11:49:30
Other Links: manifest | tags
Context
2013-07-24
22:56
lookup-asm-mips-elf.S: Support PIC. check-in: 8108a32927 user: js tags: trunk
11:49
Improve documentation. check-in: 7e5de0a086 user: js tags: trunk
2013-07-23
22:48
Allow classes in collections requiring OFCopying. check-in: 7992490163 user: js tags: trunk
Changes

Modified src/OFTLSKey.h from [cf323057cd] to [403dd472bf].

43
44
45
46
47
48
49
50


51
52
53
54
55
56
57
58
59
60
61


62
63
64
65
43
44
45
46
47
48
49

50
51
52
53
54
55
56
57
58
59
60
61

62
63
64
65
66
67







-
+
+










-
+
+




 * @return A new, autoreleased Thread Local Storage key
 */
+ (instancetype)TLSKey;

/*!
 * @brief Creates a new Thread Local Storage key with the specified destructor.
 *
 * @param destructor A destructor that is called when the thread is terminated
 * @param destructor A destructor that is called when a thread is terminated.
 *		     The argument for the destructor is the TLS key.
 * @return A new autoreleased Thread Local Storage key
 */
+ (instancetype)TLSKeyWithDestructor: (void(*)(id))destructor;

+ (void)OF_callAllDestructors;

/*!
 * @brief Initializes an already allocated Thread Local Storage Key with the
 *	  specified destructor.
 *
 * @param destructor A destructor that is called when the thread is terminated
 * @param destructor A destructor that is called when a thread is terminated.
 *		     The argument for the destructor is the TLS key.
 * @return An initialized Thread Local Storage key
 */
- initWithDestructor: (void(*)(id))destructor;
@end

Modified src/OFThread.h from [a1b30840b5] to [73a6ba9e6f].

109
110
111
112
113
114
115
116


117
118
119
120
121


122
123
124
125
126
127
128
109
110
111
112
113
114
115

116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131







-
+
+





+
+







 * @param key The Thread Local Storage key
 * @param object The object the Thread Local Storage key will be set to
 */
+ (void)setObject: (id)object
	forTLSKey: (OFTLSKey*)key;

/*!
 * @brief Returns the object for the specified Thread Local Storage key.
 * @brief Returns the object for the specified Thread Local Storage key or nil
 *	  if the key does not exist.
 *
 * @warning The returned object is *not* retained and autoreleased for
 *	    performance reasons!
 *
 * @param key The Thread Local Storage key
 * @return The object for the specified Thread Local Storage key or nil if the
 *	   key does not exist.
 */
+ (id)objectForTLSKey: (OFTLSKey*)key;

/*!
 * @brief Returns the current thread.
 *
 * @return The current thread