diff options
author | Bruce Mitchener <bruce.mitchener@gmail.com> | 2013-03-05 18:02:57 +0700 |
---|---|---|
committer | Bruce Mitchener <bruce.mitchener@gmail.com> | 2013-03-06 07:38:19 +0700 |
commit | 4c0a6fa14e8d46f8e06d239059dbdfe56cd393cf (patch) | |
tree | 6a756937ef02d9ae7c8582f8d981b5701c97a8c4 /src | |
parent | 02cdea5859956e1bffcdc1f26a188200a529c53a (diff) |
Implement stub for sched_yield().
This was in the headers, but had no implementation resulting in
an undefined at runtime.
Diffstat (limited to 'src')
-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 1676a82c..8cdbacc6 100644 --- a/src/library.js +++ b/src/library.js @@ -6693,6 +6693,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!) // ========================================================================== |