aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-03-05 17:23:03 -0800
committerAlon Zakai <alonzakai@gmail.com>2013-03-05 17:23:03 -0800
commit566f2d6abea836022fc3aac8739890a94a729af4 (patch)
treef1c4ec6e96525bb972849e8cf4b90d219b61f666
parentb17f3fe267c4cfe86e4c62215c67295471e60abb (diff)
parent9e563bb1e4cf96b97abeaf89711c1924ce05601d (diff)
Merge pull request #926 from waywardmonkeys/implement-pthread-cond-timedwait
Implement stub for pthread_cond_timedwait().
-rw-r--r--src/library.js11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/library.js b/src/library.js
index a288b739..38e56091 100644
--- a/src/library.js
+++ b/src/library.js
@@ -6718,8 +6718,15 @@ LibraryManager.library = {
},
pthread_cond_init: function() {},
pthread_cond_destroy: function() {},
- pthread_cond_broadcast: function() {},
- pthread_cond_wait: 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;