ObjFW  Diff

Differences From Artifact [b7fb0c0ce5]:

To Artifact [593c914f01]:


240
241
242
243
244
245
246
247
248


249
250
251
252
253
254
255

- (void)start
{
	if (running == OF_THREAD_RUNNING)
		@throw [OFThreadStillRunningException newWithClass: isa
							    thread: self];

	if (running = OF_THREAD_WAITING_FORJOIN)
		of_thread_detach(thread);



	[self retain];

	if (!of_thread_new(&thread, call_main, self)) {
		[self release];
		@throw [OFThreadStartFailedException newWithClass: isa
							   thread: self];







|

>
>







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

- (void)start
{
	if (running == OF_THREAD_RUNNING)
		@throw [OFThreadStillRunningException newWithClass: isa
							    thread: self];

	if (running = OF_THREAD_WAITING_FOR_JOIN) {
		of_thread_detach(thread);
		[retval release];
	}

	[self retain];

	if (!of_thread_new(&thread, call_main, self)) {
		[self release];
		@throw [OFThreadStartFailedException newWithClass: isa
							   thread: self];