runtime: Remove temporary runtime_cond_wait function.
authorIan Lance Taylor <ian@gcc.gnu.org>
Thu, 1 Dec 2011 23:50:48 +0000 (23:50 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Thu, 1 Dec 2011 23:50:48 +0000 (23:50 +0000)
From-SVN: r181897

libgo/runtime/runtime.h
libgo/runtime/thread.c

index db59be5d062cb7c6af8e05997249fbacdcce1fed..e28bc82f8abab68ee4a95d5b02eca52a8e6040aa 100644 (file)
@@ -337,6 +337,3 @@ void reflect_call(const struct __go_func_type *, const void *, _Bool, _Bool,
 #ifdef __rtems__
 void __wrap_rtems_task_variable_add(void **);
 #endif
-
-/* Temporary.  */
-void   runtime_cond_wait(pthread_cond_t*, pthread_mutex_t*);
index 459fc85c7802c945fbf31b78619bf399422ab650..d43e224ffb29e06eda3104b2dcff252b091c50b0 100644 (file)
@@ -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");
-}