Skip to content

Commit 519ba61

Browse files
committed
The quit_flag is volatile because it is changed in a signal and used in threads.
1 parent 9274bb5 commit 519ba61

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/hal/user_comps/mb2hal/mb2hal.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ typedef struct {
153153
int tot_mb_links;
154154
//others
155155
const char *mb_tx_fncts[mbtxMAX];
156-
int quit_flag;
156+
volatile int quit_flag;
157157
} gbl_t;
158158

159159
extern gbl_t gbl;

0 commit comments

Comments
 (0)