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

Merge pull request #11165 from kaspar030/fix_xtimer_lock_timeout

sys/xtimer: make xtimer_mutex_lock_timeout() actually use us arg
This commit is contained in:
Gaëtan Harter 2019-03-20 12:29:41 +01:00 committed by GitHub
commit 31c21e4165
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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);