summaryrefslogtreecommitdiff
path: root/test/mutex.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/mutex.c')
-rw-r--r--test/mutex.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/mutex.c b/test/mutex.c
index d5e7e09c51..4fbf7d5cae 100644
--- a/test/mutex.c
+++ b/test/mutex.c
@@ -83,7 +83,8 @@ int mutex_main_task(void *unused)
/* --- Serialization to test simple contention --- */
ccprintf("Simple contention :\n");
/* lock the mutex from the other task */
- task_set_event(TASK_ID_MTX2, TASK_EVENT_WAKE, 1);
+ task_set_event(TASK_ID_MTX2, TASK_EVENT_WAKE);
+ task_wait_event(0);
/* block on the mutex */
ccprintf("MTX1: blocking...\n");
mutex_lock(&mtx);