FS-10167: Small fix, made state volatile in session and connection to prevent odd behaviour by the GCC compiler under linux

This commit is contained in:
Shane Bryldt 2017-04-18 15:10:34 -05:00
parent 2c996b592f
commit 21f5635037
3 changed files with 6 additions and 6 deletions

View File

@ -42,7 +42,7 @@ struct blade_connection_s {
blade_connection_direction_t direction;
ks_thread_t *state_thread;
blade_connection_state_t state;
volatile blade_connection_state_t state;
const char *id;
ks_rwl_t *lock;

View File

@ -37,7 +37,7 @@ struct blade_session_s {
blade_handle_t *handle;
ks_pool_t *pool;
blade_session_state_t state;
volatile blade_session_state_t state;
const char *id;
ks_rwl_t *lock;