ObjFW  Diff

Differences From Artifact [83f93c8053]:

To Artifact [0f6e6aa5d7]:


144
145
146
147
148
149
150
151
152
153
154


155
156
157
158
159
160
161
		else
# endif
			thread->_returnValue = [[thread main] retain];
	}

	[thread handleTermination];

	thread->_running = OF_THREAD_WAITING_FOR_JOIN;

	objc_autoreleasePoolPop(thread->_pool);
	[OFAutoreleasePool of_handleThreadTermination];



	[thread release];
}
#elif defined(OF_HAVE_SOCKETS)
static OFDNSResolver *DNSResolver;
#endif








<
<


>
>







144
145
146
147
148
149
150


151
152
153
154
155
156
157
158
159
160
161
		else
# endif
			thread->_returnValue = [[thread main] retain];
	}

	[thread handleTermination];



	objc_autoreleasePoolPop(thread->_pool);
	[OFAutoreleasePool of_handleThreadTermination];

	thread->_running = OF_THREAD_WAITING_FOR_JOIN;

	[thread release];
}
#elif defined(OF_HAVE_SOCKETS)
static OFDNSResolver *DNSResolver;
#endif

329
330
331
332
333
334
335


336
337
338
339
340
341
342
{
	OFThread *thread = of_tlskey_get(threadSelfKey);

	OF_ENSURE(thread != nil);

	thread->_returnValue = [object retain];
	longjmp(thread->_exitEnv, 1);


}

+ (void)setName: (OFString *)name
{
	[OFThread currentThread].name = name;

	if (name != nil)







>
>







329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
{
	OFThread *thread = of_tlskey_get(threadSelfKey);

	OF_ENSURE(thread != nil);

	thread->_returnValue = [object retain];
	longjmp(thread->_exitEnv, 1);

	OF_UNREACHABLE
}

+ (void)setName: (OFString *)name
{
	[OFThread currentThread].name = name;

	if (name != nil)