mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-31 21:03:10 +02:00
And move the g_thread_yield() docs too
This commit is contained in:
parent
71df026580
commit
0ebd842d24
@ -629,6 +629,15 @@ g_thread_create_posix_impl (GThreadFunc thread_func,
|
|||||||
posix_check_err (ret, "pthread_create");
|
posix_check_err (ret, "pthread_create");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 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
|
void
|
||||||
g_thread_yield (void)
|
g_thread_yield (void)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user