From 4c0a6fa14e8d46f8e06d239059dbdfe56cd393cf Mon Sep 17 00:00:00 2001 From: Bruce Mitchener Date: Tue, 5 Mar 2013 18:02:57 +0700 Subject: Implement stub for sched_yield(). This was in the headers, but had no implementation resulting in an undefined at runtime. --- src/library.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/library.js b/src/library.js index 1676a82c..8cdbacc6 100644 --- a/src/library.js +++ b/src/library.js @@ -6692,6 +6692,13 @@ LibraryManager.library = { return 0; }, + // ========================================================================== + // sched.h (stubs only - no thread support yet!) + // ========================================================================== + sched_yield: function() { + return 0; + }, + // ========================================================================== // pthread.h (stubs for mutexes only - no thread support yet!) // ========================================================================== -- cgit v1.2.3-18-g5258