projects
/
platform
/
upstream
/
glib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
71df026
)
And move the g_thread_yield() docs too
author
Matthias Clasen
<mclasen@redhat.com>
Mon, 19 Sep 2011 02:11:12 +0000
(22:11 -0400)
committer
Ryan Lortie
<desrt@desrt.ca>
Wed, 21 Sep 2011 20:06:54 +0000
(16:06 -0400)
glib/gthread-posix.c
patch
|
blob
|
history
diff --git
a/glib/gthread-posix.c
b/glib/gthread-posix.c
index
5e51634
..
52b8d3f
100644
(file)
--- a/
glib/gthread-posix.c
+++ b/
glib/gthread-posix.c
@@
-629,6
+629,15
@@
g_thread_create_posix_impl (GThreadFunc thread_func,
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
g_thread_yield (void)
{