mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
xtimer/xtimer.c: fix timeout is volatile
timeout is modified from interupt context so must be volatile
This commit is contained in:
parent
301d88c04a
commit
1fff551d7c
@ -45,7 +45,7 @@
|
||||
typedef struct {
|
||||
mutex_t *mutex;
|
||||
thread_t *thread;
|
||||
int timeout;
|
||||
volatile int timeout;
|
||||
} mutex_thread_t;
|
||||
|
||||
static void _callback_unlock_mutex(void* arg)
|
||||
|
Loading…
Reference in New Issue
Block a user