summaryrefslogtreecommitdiff
path: root/libiohelp/handle_io_release_conch.c
diff options
context:
space:
mode:
Diffstat (limited to 'libiohelp/handle_io_release_conch.c')
-rw-r--r--libiohelp/handle_io_release_conch.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libiohelp/handle_io_release_conch.c b/libiohelp/handle_io_release_conch.c
index 8a6bd32d..5be30a66 100644
--- a/libiohelp/handle_io_release_conch.c
+++ b/libiohelp/handle_io_release_conch.c
@@ -25,13 +25,13 @@ iohelp_handle_io_release_conch (struct conch *c, void *user)
{
struct shared_io *user_sh = c->holder_shared_page;
- spin_lock (&user_sh->lock);
+ pthread_spin_lock (&user_sh->lock);
if (c->holder_shared_page->conch_status != USER_HAS_NOT_CONCH)
{
c->holder_shared_page->conch_status = USER_HAS_NOT_CONCH;
iohelp_fetch_shared_data (c->holder);
}
- spin_unlock (&user_sh->lock);
+ pthread_spin_unlock (&user_sh->lock);
if (c->holder == user)
{
@@ -39,6 +39,6 @@ iohelp_handle_io_release_conch (struct conch *c, void *user)
c->holder_shared_page = 0;
}
- condition_broadcast (&c->wait);
+ pthread_cond_broadcast (&c->wait);
}