ObjFW  Check-in [3e91cf6cef]

Overview
Comment:Get rid of a type warning on win32.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 3e91cf6cef32560879ecd6600b57d11c6fa9f293323f47ee64d7a4644e84d321
User & Date: js on 2013-05-13 16:12:42
Other Links: manifest | tags
Context
2013-05-13
16:21
Fix missing import. check-in: 22bcd14a08 user: js tags: trunk
16:12
Get rid of a type warning on win32. check-in: 3e91cf6cef user: js tags: trunk
2013-05-08
20:15
Add -[OFException backtrace]. check-in: 41716f97ed user: js tags: trunk
Changes

Modified src/threading.h from [165753d14b] to [e79bb60b2e].

262
263
264
265
266
267
268
269
270
271
272
273
274
275
276

static OF_INLINE bool
of_condition_broadcast(of_condition_t *condition)
{
#if defined(OF_HAVE_PTHREADS)
	return !pthread_cond_broadcast(condition);
#elif defined(_WIN32)
	size_t i;

	for (i = 0; i < condition->count; i++)
		if (!SetEvent(condition->event))
			return false;

	return true;
#endif







|







262
263
264
265
266
267
268
269
270
271
272
273
274
275
276

static OF_INLINE bool
of_condition_broadcast(of_condition_t *condition)
{
#if defined(OF_HAVE_PTHREADS)
	return !pthread_cond_broadcast(condition);
#elif defined(_WIN32)
	int i;

	for (i = 0; i < condition->count; i++)
		if (!SetEvent(condition->event))
			return false;

	return true;
#endif