ObjFW  Check-in [43e45e2364]

Overview
Comment:Don't use main as variable name.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 43e45e236405e3a5117994aaffcd9fb5b9a84a8c535a91c1d188bc3e81ccf8fa
User & Date: js on 2012-08-19 21:27:45
Original User & Date: js on 2012-08-19 21:27:46
Other Links: manifest | tags
Context
2012-08-19
21:27
Fix types for of_{dimension,rectangle,point}(). check-in: a82ee4d8c7 user: js tags: trunk
21:27
Don't use main as variable name. check-in: 43e45e2364 user: js tags: trunk
21:27
Add more ARC type qualifiers. check-in: bab9dd49fe user: js tags: trunk
Changes

Modified src/threading.h from [e7e86967b9] to [250a513bc4].

63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
# define of_thread_current pthread_self
#elif defined(_WIN32)
# define of_thread_is_current(t) (t == GetCurrentThread())
# define of_thread_current GetCurrentThread
#endif

static OF_INLINE BOOL
of_thread_new(of_thread_t *thread, id (*main)(id), id data)
{
#if defined(OF_HAVE_PTHREADS)
	return !pthread_create(thread, NULL, (void*(*)(void*))main,
	    (__bridge void*)data);
#elif defined(_WIN32)
	*thread = CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)main,
	    (__bridge void*)data, 0, NULL);

	return (thread != NULL);
#endif
}

static OF_INLINE BOOL







|


|


|







63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
# define of_thread_current pthread_self
#elif defined(_WIN32)
# define of_thread_is_current(t) (t == GetCurrentThread())
# define of_thread_current GetCurrentThread
#endif

static OF_INLINE BOOL
of_thread_new(of_thread_t *thread, id (*function)(id), id data)
{
#if defined(OF_HAVE_PTHREADS)
	return !pthread_create(thread, NULL, (void*(*)(void*))function,
	    (__bridge void*)data);
#elif defined(_WIN32)
	*thread = CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)function,
	    (__bridge void*)data, 0, NULL);

	return (thread != NULL);
#endif
}

static OF_INLINE BOOL