diff options
author | Mikhail Galanin <mgalanin@mimecast.com> | 2018-08-24 09:13:24 +0100 |
---|---|---|
committer | Mikhail Galanin <mgalanin@mimecast.com> | 2018-08-24 09:13:24 +0100 |
commit | 6d12ba86f224b77a5047643e7c304fef1d763b26 (patch) | |
tree | 2a349f5107a18d2d0f8d8d5a2bfece1c93e6c83a /test/rspamd_lua_pcall_vs_resume_test.c | |
parent | ed9d4ec8c8b62664f0157ccb6dceaba264e1891b (diff) | |
download | rspamd-6d12ba86f224b77a5047643e7c304fef1d763b26.tar.gz rspamd-6d12ba86f224b77a5047643e7c304fef1d763b26.zip |
[Minor] Split lua_thread_pool_get on lua_thread_pool_get_for_task/lua_thread_pool_get_for_config
Diffstat (limited to 'test/rspamd_lua_pcall_vs_resume_test.c')
-rw-r--r-- | test/rspamd_lua_pcall_vs_resume_test.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/rspamd_lua_pcall_vs_resume_test.c b/test/rspamd_lua_pcall_vs_resume_test.c index 03f1d86c1..95cf77cdf 100644 --- a/test/rspamd_lua_pcall_vs_resume_test.c +++ b/test/rspamd_lua_pcall_vs_resume_test.c @@ -72,7 +72,7 @@ test_resume_get_thread(gint function_call) t1 = rspamd_get_virtual_ticks (); for (i = 0; i < N; i ++) { - ent = lua_thread_pool_get (rspamd_main->cfg->lua_thread_pool); + ent = lua_thread_pool_get_for_config (rspamd_main->cfg); lua_rawgeti (ent->lua_state, LUA_REGISTRYINDEX, function_call); lua_resume (ent->lua_state, 0); @@ -96,7 +96,7 @@ test_resume_get_new_thread(gint function_call) t1 = rspamd_get_virtual_ticks (); for (i = 0; i < N; i ++) { - ent = lua_thread_pool_get (rspamd_main->cfg->lua_thread_pool); + ent = lua_thread_pool_get_for_task (rspamd_main->cfg->lua_thread_pool); lua_rawgeti (ent->lua_state, LUA_REGISTRYINDEX, function_call); lua_resume (ent->lua_state, 0); |