mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-12 12:37:05 +00:00
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:
1 parent
2c996b592f
commit
21f5635037
2 files changed
+2
-2
No files matched your search
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in new issue
Block a user