summaryrefslogtreecommitdiff
path: root/core/host/task.c
diff options
context:
space:
mode:
Diffstat (limited to 'core/host/task.c')
-rw-r--r--core/host/task.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/host/task.c b/core/host/task.c
index 5bff856def..98a77b8e41 100644
--- a/core/host/task.c
+++ b/core/host/task.c
@@ -210,6 +210,9 @@ void mutex_lock(struct mutex *mtx)
}
if (!value)
+ /* Contention on the mutex */
+ /* TODO(crbug.com/435612, crbug.com/435611)
+ * This discards any pending events! */
task_wait_event(-1);
} while (!value);