ObjFW  Check-in [ba813e24da]

Overview
Comment:OFRunLoop: Small clean up
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: ba813e24dad913c593777a454c17ae6501d31e885005da9c9c2ff864d6a732d2
User & Date: js on 2016-04-18 17:20:02
Other Links: manifest | tags
Context
2016-04-18
17:28
OFCondition: Improve documentation check-in: dc52529ee7 user: js tags: trunk
17:20
OFRunLoop: Small clean up check-in: ba813e24da user: js tags: trunk
17:00
OFThread: Fix missing include check-in: e630807216 user: js tags: trunk
Changes

Modified src/OFRunLoop.m from [3185d7f56f] to [84cb722e01].

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];
828
829
830
831
832
833
834
835
836
837
838
839
840

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







<

<



826
827
828
829
830
831
832

833

834
835
836

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

	[_condition signal];

#endif
}
@end