about summary refs log tree commit homepage
path: root/cmogstored.h
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2013-06-21 03:34:36 +0000
committerEric Wong <normalperson@yhbt.net>2013-06-25 22:07:42 +0000
commite12e70b6bd242cb3fea74d1df8b7b44e0a9f7f26 (patch)
tree49f915d77028ae98852243efed2ab3c7c8323660 /cmogstored.h
parenta18a08a0e9a7c472656afc86cbbbfcefda5e456d (diff)
downloadcmogstored-e12e70b6bd242cb3fea74d1df8b7b44e0a9f7f26.tar.gz
While pthread_yield is non-standard, it is relatively common and
preferable for systems where pthreads are _not_ 1:1 mapped to kernel
threads.  This also provides a stronger yield to weaken the priority
of the calling thread wherever we previously used sched_yield.
Diffstat (limited to 'cmogstored.h')
-rw-r--r--cmogstored.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/cmogstored.h b/cmogstored.h
index 580de8d..e6975c3 100644
--- a/cmogstored.h
+++ b/cmogstored.h
@@ -596,3 +596,6 @@ struct mog_ni {
 
 /* nameinfo.c */
 void mog_nameinfo(struct mog_packaddr *, struct mog_ni *);
+
+/* yield.c */
+void mog_yield(void);