1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-17 05:52:44 +01:00

Merge branch 'master' of ssh://ukleos.org/home/git/ukleos

This commit is contained in:
Kaspar Schleiser 2010-11-01 13:38:27 +01:00
commit 25cd2e4412

View File

@ -103,6 +103,13 @@ void mutex_wake_waiters(struct mutex_t *mutex, int flags) {
DEBUG("%s: waking up waiters.\n", active_thread->name);
queue_node_t *next = queue_remove_head(&(mutex->queue));
/* queue is empty */
if (!next) {
mutex->val = 0;
return;
}
tcb* process = (tcb*)next->data;
sched_set_status(process, STATUS_PENDING);