summaryrefslogtreecommitdiff
path: root/ucoo/common.hh
diff options
context:
space:
mode:
Diffstat (limited to 'ucoo/common.hh')
-rw-r--r--ucoo/common.hh4
1 files changed, 4 insertions, 0 deletions
diff --git a/ucoo/common.hh b/ucoo/common.hh
index 708b9a1..5e982d8 100644
--- a/ucoo/common.hh
+++ b/ucoo/common.hh
@@ -100,6 +100,10 @@ assert_perror (bool condition)
halt_perror ();
}
+/// Give some time to other tasks when running in a tight loop.
+void
+yield ();
+
/// Get array length at compile time.
template<class T, int N>
constexpr int