gboolean, gboolean, GThreadPriority,
gpointer, GError**))g_thread_fail,
-/**
- * g_thread_yield:
- *
- * Gives way to other threads waiting to be scheduled.
- *
- * This function is often used as a method to make busy wait less evil.
- * But in most cases you will encounter, there are better methods to do
- * that. So in general you shouldn't use this function.
- **/
- NULL,
-
+ NULL, /* thread_yield */
NULL, /* thread_join */
NULL, /* thread_exit */
NULL, /* thread_set_priority */
return (GThread*)thread;
}
+/**
+ * g_thread_yield:
+ *
+ * Gives way to other threads waiting to be scheduled.
+ *
+ * This function is often used as a method to make busy wait less evil.
+ * But in most cases you will encounter, there are better methods to do
+ * that. So in general you shouldn't use this function.
+ */
+void
+g_thread_yield (void)
+{
+ G_THREAD_UF (thread_yield, ());
+}
+
/* GStaticRWLock {{{1 ----------------------------------------------------- */
/**
#else
#define g_thread_supported() (g_threads_got_initialized)
#endif
-#define g_thread_yield() G_THREAD_CF (thread_yield, (void)0, ())
#define g_thread_create(func, data, joinable, error) \
(g_thread_create_full (func, data, 0, joinable, FALSE, \
GThread* g_thread_self (void);
void g_thread_exit (gpointer retval);
gpointer g_thread_join (GThread *thread);
+void g_thread_yield (void);
void g_thread_set_priority (GThread *thread,
GThreadPriority priority);