aboutsummaryrefslogtreecommitdiff
path: root/libgo/runtime/thread.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2011-12-01 23:50:48 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2011-12-01 23:50:48 +0000
commitf4c016e605b6a8293384564e6070d7da876a68d2 (patch)
treedebba9432db66a824c1e162898af0b56ead31731 /libgo/runtime/thread.c
parent9a944f58851b27df1d68c18c927a826826b7fa0b (diff)
downloadgcc-f4c016e605b6a8293384564e6070d7da876a68d2.zip
gcc-f4c016e605b6a8293384564e6070d7da876a68d2.tar.gz
gcc-f4c016e605b6a8293384564e6070d7da876a68d2.tar.bz2
runtime: Remove temporary runtime_cond_wait function.
From-SVN: r181897
Diffstat (limited to 'libgo/runtime/thread.c')
-rw-r--r--libgo/runtime/thread.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/libgo/runtime/thread.c b/libgo/runtime/thread.c
index 459fc85..d43e224 100644
--- a/libgo/runtime/thread.c
+++ b/libgo/runtime/thread.c
@@ -90,27 +90,3 @@ runtime_minit(void)
if(sigaltstack(&ss, nil) < 0)
*(int *)0xf1 = 0xf1;
}
-
-// Temporary functions, which will be removed when we stop using
-// condition variables.
-
-void
-runtime_cond_wait(pthread_cond_t* cond, pthread_mutex_t* mutex)
-{
- int i;
-
- runtime_entersyscall();
-
- i = pthread_cond_wait(cond, mutex);
- if(i != 0)
- runtime_throw("pthread_cond_wait");
- i = pthread_mutex_unlock(mutex);
- if(i != 0)
- runtime_throw("pthread_mutex_unlock");
-
- runtime_exitsyscall();
-
- i = pthread_mutex_lock(mutex);
- if(i != 0)
- runtime_throw("pthread_mutex_lock");
-}