ObjFW  Diff

Differences From Artifact [c69b3187df]:

To Artifact [053c62f685]:


135
136
137
138
139
140
141
142
143

144
145

146

147
148
149
150
151
152
153
154
135
136
137
138
139
140
141

142
143
144
145
146

147

148
149
150
151
152
153
154







-

+


+
-
+
-







 * \return A new, autoreleased thread
 */
+ threadWithBlock: (of_thread_block_t)block;

/**
 * \brief Creates a new thread with the specified block and object.
 *
 * \param block A block which is executed by the thread
 * \param object An object which is passed for use in the main method or nil
 * \param block A block which is executed by the thread
 * \return A new, autoreleased thread
 */
+ threadWithObject: (id)object
+ threadWithBlock: (of_thread_block_t)block
	     block: (of_thread_block_t)block;
	   object: (id)object;
#endif

/**
 * \brief Sets the Thread Local Storage for the specified key.
 *
 * The specified object is first retained and then the object stored before is
 * released. You can specify nil as object if you want the old object to be
240
241
242
243
244
245
246

247

248
249
250
251
252
253
254
255
240
241
242
243
244
245
246
247

248

249
250
251
252
253
254
255







+
-
+
-







 * \brief Initializes an already allocated thread with the specified block and
 *	  object.
 *
 * \param block A block which is executed by the thread
 * \param object An object which is passed for use in the main method or nil
 * \return An initialized OFThread.
 */
- initWithObject: (id)object
- initWithBlock: (of_thread_block_t)block
	   block: (of_thread_block_t)block;
	 object: (id)object;
#endif

/**
 * \brief The main routine of the thread. You need to reimplement this!
 *
 * It can access the object passed to the threadWithObject or initWithObject
 * method using the instance variable named object.