diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-03-05 17:23:27 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-03-05 17:23:27 -0800 |
commit | 509dc21a4832d3f99e4c4506fa78c223d094127e (patch) | |
tree | 9a859f2e06631e5c1157d5411d765d4cd3e1125b | |
parent | 566f2d6abea836022fc3aac8739890a94a729af4 (diff) | |
parent | 4c0a6fa14e8d46f8e06d239059dbdfe56cd393cf (diff) |
Merge pull request #924 from waywardmonkeys/implement-sched-yield
Implement stub for sched_yield().
-rw-r--r-- | src/library.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/library.js b/src/library.js index 38e56091..92907c55 100644 --- a/src/library.js +++ b/src/library.js @@ -6703,6 +6703,13 @@ LibraryManager.library = { }, // ========================================================================== + // sched.h (stubs only - no thread support yet!) + // ========================================================================== + sched_yield: function() { + return 0; + }, + + // ========================================================================== // pthread.h (stubs for mutexes only - no thread support yet!) // ========================================================================== |