diff options
Diffstat (limited to 'libgo/runtime/go-close.c')
-rw-r--r-- | libgo/runtime/go-close.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/libgo/runtime/go-close.c b/libgo/runtime/go-close.c index 778eab3d7d8..a6df3833c26 100644 --- a/libgo/runtime/go-close.c +++ b/libgo/runtime/go-close.c @@ -4,6 +4,7 @@ Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. */ +#include "runtime.h" #include "go-assert.h" #include "go-panic.h" #include "channel.h" @@ -23,10 +24,7 @@ __go_builtin_close (struct __go_channel *channel) __go_assert (i == 0); while (channel->selected_for_send) - { - i = pthread_cond_wait (&channel->cond, &channel->lock); - __go_assert (i == 0); - } + runtime_cond_wait (&channel->cond, &channel->lock); if (channel->is_closed) { |