From 97ee88caf3acfab8e0f9e3927c56b49e629ecf55 Mon Sep 17 00:00:00 2001 From: Amy Gale Ruth Bowersox Date: Sun, 1 Dec 2019 01:24:15 -0700 Subject: [PATCH] cleaning up access to the system queue --- src/sysinput.c | 2 +- src/sysinput.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sysinput.c b/src/sysinput.c index c45d6f7..503c2f3 100644 --- a/src/sysinput.c +++ b/src/sysinput.c @@ -5,7 +5,7 @@ #include "msg_queue.h" #include "gpio.h" -PMSG_QUEUE Sys_Queue = NULL; +volatile PMSG_QUEUE Sys_Queue = NULL; static pthread_t ithread; static volatile sig_atomic_t running = 1; diff --git a/src/sysinput.h b/src/sysinput.h index 29b5a18..bc08960 100644 --- a/src/sysinput.h +++ b/src/sysinput.h @@ -3,7 +3,7 @@ #include "msg_queue.h" -extern PMSG_QUEUE Sys_Queue; +extern volatile PMSG_QUEUE Sys_Queue; extern int SysEnableInput(void); extern void SysDisableInput(void);