ObjFW  Check-in [7d387ea44c]

Overview
Comment:OFRunLoop: Small clean up
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | 0.8
Files: files | file ages | folders
SHA3-256: 7d387ea44ccd29bbeff94d3146daf9e0b640c1ff24b4aa2efc8e5eb9d5881efb
User & Date: js on 2016-04-18 17:22:31
Other Links: branch diff | manifest | tags
Context
2016-04-18
17:28
OFCondition: Improve documentation check-in: 3c17e20808 user: js tags: 0.8
17:22
OFRunLoop: Small clean up check-in: 7d387ea44c user: js tags: 0.8
17:22
OFThread: Fix missing include check-in: ad9813cef0 user: js tags: 0.8
Changes

Modified src/OFRunLoop.m from [1d17371e17] to [0893597d95].

400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
#endif

	[timer OF_setInRunLoop: self];

#if defined(OF_HAVE_SOCKETS)
	[_kernelEventObserver cancel];
#elif defined(OF_HAVE_THREADS)
	[_condition lock];
	[_condition signal];
	[_condition unlock];
#endif
}

- (void)OF_removeTimer: (OFTimer*)timer
{
#ifdef OF_HAVE_THREADS
	[_timersQueueLock lock];







<

<







400
401
402
403
404
405
406

407

408
409
410
411
412
413
414
#endif

	[timer OF_setInRunLoop: self];

#if defined(OF_HAVE_SOCKETS)
	[_kernelEventObserver cancel];
#elif defined(OF_HAVE_THREADS)

	[_condition signal];

#endif
}

- (void)OF_removeTimer: (OFTimer*)timer
{
#ifdef OF_HAVE_THREADS
	[_timersQueueLock lock];
811
812
813
814
815
816
817
818
819
820
821
822
823

- (void)stop
{
	_running = false;
#if defined(OF_HAVE_SOCKETS)
	[_kernelEventObserver cancel];
#elif defined(OF_HAVE_THREADS)
	[_condition lock];
	[_condition signal];
	[_condition unlock];
#endif
}
@end







<

<



809
810
811
812
813
814
815

816

817
818
819

- (void)stop
{
	_running = false;
#if defined(OF_HAVE_SOCKETS)
	[_kernelEventObserver cancel];
#elif defined(OF_HAVE_THREADS)

	[_condition signal];

#endif
}
@end