diff options
author | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-12-01 23:50:48 +0000 |
---|---|---|
committer | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-12-01 23:50:48 +0000 |
commit | 27abc30d7251d5ae176c9fddb371e32e9414a2f9 (patch) | |
tree | debba9432db66a824c1e162898af0b56ead31731 /libgo | |
parent | 17ae7d8dcc6e7e6285902d593a89228d435106b0 (diff) | |
download | gcc-27abc30d7251d5ae176c9fddb371e32e9414a2f9.tar.gz |
runtime: Remove temporary runtime_cond_wait function.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@181897 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgo')
-rw-r--r-- | libgo/runtime/runtime.h | 3 | ||||
-rw-r--r-- | libgo/runtime/thread.c | 24 |
2 files changed, 0 insertions, 27 deletions
diff --git a/libgo/runtime/runtime.h b/libgo/runtime/runtime.h index db59be5d062..e28bc82f8ab 100644 --- a/libgo/runtime/runtime.h +++ b/libgo/runtime/runtime.h @@ -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*); diff --git a/libgo/runtime/thread.c b/libgo/runtime/thread.c index 459fc85c780..d43e224ffb2 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"); -} |