提交 21f56350 authored 作者: Shane Bryldt's avatar Shane Bryldt

FS-10167: Small fix, made state volatile in session and connection to prevent…

FS-10167: Small fix, made state volatile in session and connection to prevent odd behaviour by the GCC compiler under linux
上级 2c996b59
......@@ -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;
......
......@@ -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;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论