ObjFW  Check-in [184011467a]

Overview
Comment:OFRunLoop: Reset _stop after -[run]

This allows calling -[run] from a callback to run the loop for a while,
without the run that called the callback being stopped.

Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 184011467af78db52ba6948a3b97d04784fee1e4efe00fe68cf6427dde55446a
User & Date: js on 2018-02-25 13:46:33
Other Links: manifest | tags
Context
2018-02-25
15:48
OFHTTPClient: Reintroduce -[performRequest:] check-in: f80b0d270c user: js tags: trunk
13:46
OFRunLoop: Reset _stop after -[run] check-in: 184011467a user: js tags: trunk
04:31
Reintroduce of_char{16,32}_t check-in: 505137f25f user: js tags: trunk
Changes

Modified src/OFRunLoop.m from [06b6c0f243] to [3fae23d4fe].

1042
1043
1044
1045
1046
1047
1048


1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
		    [deadline compare: now] != OF_ORDERED_DESCENDING)) {
			objc_autoreleasePoolPop(pool);
			break;
		}

		objc_autoreleasePoolPop(pool);
	}


}

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







>
>












1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
		    [deadline compare: now] != OF_ORDERED_DESCENDING)) {
			objc_autoreleasePoolPop(pool);
			break;
		}

		objc_autoreleasePoolPop(pool);
	}

	_stop = false;
}

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