From 18eb60ebb34bb699121567cf41e3a5fc79a262c2 Mon Sep 17 00:00:00 2001 From: Bruce Mitchener Date: Tue, 5 Mar 2013 18:11:51 +0700 Subject: Implement stub for pthread_cond_timedwait(). This was in the headers, but had no implementation resulting in an undefined at runtime. --- src/library.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/library.js b/src/library.js index 1676a82c..28131d97 100644 --- a/src/library.js +++ b/src/library.js @@ -6710,6 +6710,7 @@ LibraryManager.library = { pthread_cond_destroy: function() {}, pthread_cond_broadcast: function() {}, pthread_cond_wait: function() {}, + pthread_cond_timedwait: function() {}, pthread_self: function() { //FIXME: assumes only a single thread return 0; -- cgit v1.2.3-18-g5258 From 9e563bb1e4cf96b97abeaf89711c1924ce05601d Mon Sep 17 00:00:00 2001 From: Bruce Mitchener Date: Wed, 6 Mar 2013 07:44:55 +0700 Subject: Add some return values for pthread_cond_*. --- src/library.js | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/library.js b/src/library.js index 28131d97..1dc6e5fd 100644 --- a/src/library.js +++ b/src/library.js @@ -6708,9 +6708,15 @@ LibraryManager.library = { }, pthread_cond_init: function() {}, pthread_cond_destroy: function() {}, - pthread_cond_broadcast: function() {}, - pthread_cond_wait: function() {}, - pthread_cond_timedwait: function() {}, + pthread_cond_broadcast: function() { + return 0; + }, + pthread_cond_wait: function() { + return 0; + }, + pthread_cond_timedwait: function() { + return 0; + }, pthread_self: function() { //FIXME: assumes only a single thread return 0; -- cgit v1.2.3-18-g5258