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 committed 2017-04-18 15:10:34 -05:00
1 parent 2c996b592f
commit 21f5635037
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -42,7 +42,7 @@ struct blade_connection_s {
blade_connection_direction_t direction; blade_connection_direction_t direction;
ks_thread_t *state_thread; ks_thread_t *state_thread;
blade_connection_state_t state; volatile blade_connection_state_t state;
const char *id; const char *id;
ks_rwl_t *lock; ks_rwl_t *lock;
+1 -1
View File
@@ -37,7 +37,7 @@ struct blade_session_s {
blade_handle_t *handle; blade_handle_t *handle;
ks_pool_t *pool; ks_pool_t *pool;
blade_session_state_t state; volatile blade_session_state_t state;
const char *id; const char *id;
ks_rwl_t *lock; ks_rwl_t *lock;