From 5e33e7f468eda8466da1dd55cacc88ee4915d18f Mon Sep 17 00:00:00 2001 From: NIIBE Yutaka Date: Wed, 18 May 2016 17:00:25 +0900 Subject: [PATCH] fix eventflag --- eventflag.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/eventflag.c b/eventflag.c index c30d40c..5fc5db5 100644 --- a/eventflag.c +++ b/eventflag.c @@ -48,7 +48,7 @@ eventflag_wait (struct eventflag *ev) chopstx_mutex_lock (&ev->mutex); if (!ev->flags) - chopstx_cond_wait (&ev->u.cond, &ev->mutex); + chopstx_cond_wait (&ev->cond, &ev->mutex); n = __builtin_ffs (ev->flags); ev->flags &= ~(1 << (n - 1)); @@ -100,7 +100,7 @@ void eventflag_signal (struct eventflag *ev, eventmask_t m) { chopstx_mutex_lock (&ev->mutex); - ev->flag |= m; - chopstx_cond_signal (&ev->u.cond); + ev->flags |= m; + chopstx_cond_signal (&ev->cond); chopstx_mutex_unlock (&ev->mutex); }