mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-16 06:18:35 +00:00
FS-10167: Rewrote the ks_pool allocator, no longer uses paging or internal block allocation, but still retains reference counting and auto cleanup callbacks, should be much more efficient now on windows than the original mmap approach, and all tests now run successfully!
This commit is contained in:
1 parent
aaa26c6d09
commit
ea0dc132a3
17 files changed
+524
-1677
No files matched your search
@@ -122,10 +122,10 @@ void on_blade_session_state_callback(blade_session_t *bs, blade_session_state_co
|
||||
if (condition == BLADE_SESSION_STATE_CONDITION_PRE) {
|
||||
ks_log(KS_LOG_DEBUG, "Blade Session State Changed: %s, %d\n", blade_session_id_get(bs), state);
|
||||
if (state == BLADE_SESSION_STATE_READY) {
|
||||
cJSON *req = NULL;
|
||||
blade_rpc_request_create(blade_session_pool_get(bs), &req, NULL, NULL, "blade.chat.join");
|
||||
blade_session_send(bs, req, on_blade_chat_join_response);
|
||||
cJSON_Delete(req);
|
||||
//cJSON *req = NULL;
|
||||
//blade_rpc_request_create(blade_session_pool_get(bs), &req, NULL, NULL, "blade.chat.join");
|
||||
//blade_session_send(bs, req, on_blade_chat_join_response);
|
||||
//cJSON_Delete(req);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -72,13 +72,13 @@ int main(int argc, char **argv)
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
|
||||
blade_module_chat_on_load(&mod_chat, bh);
|
||||
blade_module_chat_on_startup(mod_chat, config_blade);
|
||||
//blade_module_chat_on_load(&mod_chat, bh);
|
||||
//blade_module_chat_on_startup(mod_chat, config_blade);
|
||||
|
||||
loop(bh);
|
||||
|
||||
blade_module_chat_on_shutdown(mod_chat);
|
||||
blade_module_chat_on_unload(mod_chat);
|
||||
//blade_module_chat_on_shutdown(mod_chat);
|
||||
//blade_module_chat_on_unload(mod_chat);
|
||||
|
||||
blade_module_wss_on_shutdown(mod_wss);
|
||||
|
||||
|
||||
Reference in new issue
Block a user