1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

sys/xtimer: make xtimer_mutex_lock_timeout() actually use us arg

This commit is contained in:
Kaspar Schleiser 2019-02-21 14:33:08 +01:00
parent b50ad9ed4c
commit 069a1f6e8b

View File

@ -255,7 +255,7 @@ int xtimer_mutex_lock_timeout(mutex_t *mutex, uint64_t timeout)
if (timeout != 0) {
t.callback = _mutex_timeout;
t.arg = (void *)((mutex_thread_t *)&mt);
_xtimer_set64(&t, timeout, timeout >> 32);
xtimer_set64(&t, timeout);
}
mutex_lock(mutex);