File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -59,4 +59,5 @@ ltmain.sh
59
59
missing
60
60
test-driver
61
61
core. *
62
- TAGS
62
+ TAGS
63
+ .vscode /c_cpp_properties.json
Original file line number Diff line number Diff line change @@ -71,13 +71,14 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_mosquitto_load) {
71
71
memset (& mosquitto_globals , 0 , sizeof (mosquitto_globals ));
72
72
mosquitto_globals .pool = pool ;
73
73
74
+ switch_thread_rwlock_create (& mosquitto_globals .bgapi_rwlock , mosquitto_globals .pool );
74
75
switch_mutex_init (& mosquitto_globals .mutex , SWITCH_MUTEX_DEFAULT , mosquitto_globals .pool );
75
76
switch_mutex_init (& mosquitto_globals .log .mutex , SWITCH_MUTEX_DEFAULT , mosquitto_globals .pool );
76
77
switch_mutex_init (& mosquitto_globals .profiles_mutex , SWITCH_MUTEX_NESTED , mosquitto_globals .pool );
77
- switch_thread_rwlock_create (& mosquitto_globals .bgapi_rwlock , mosquitto_globals .pool );
78
- switch_core_hash_init (& mosquitto_globals .profiles );
79
78
switch_queue_create (& mosquitto_globals .event_queue , mosquitto_globals .event_queue_size , mosquitto_globals .pool );
80
79
80
+ switch_core_hash_init (& mosquitto_globals .profiles );
81
+
81
82
/* create a loadable module interface structure named with modname */
82
83
/* the module interface defines the different interfaces that this module has defined */
83
84
* module_interface = switch_loadable_module_create_module_interface (pool , modname );
You can’t perform that action at this time.
0 commit comments