Lines Matching refs:pool
43 void ap_lua_init_mutex(apr_pool_t *pool, server_rec *s)
50 pool);
57 /* Server pool mutex */
59 apr_thread_mutex_create(&ap_lua_mutex, APR_THREAD_MUTEX_DEFAULT, pool);
233 /* callback for cleaning up a lua vm when pool is closed */
264 * pool -> lifecycle pool for allocations
272 apr_pool_t *pool,
287 parent_dir = ap_make_dirstr_parent(pool, file);
289 pattern = apr_pstrcat(pool, parent_dir, sub_pat, NULL);
299 part = apr_pstrcat(pool, modified, ";", apr_array_pstrcat(pool, paths, ';'),
385 lua_setfield(L, LUA_REGISTRYINDEX, "Apache2.Wombat.pool");
391 static ap_lua_vm_spec* copy_vm_spec(apr_pool_t* pool, ap_lua_vm_spec* spec)
393 ap_lua_vm_spec* copied_spec = apr_pcalloc(pool, sizeof(ap_lua_vm_spec));
395 copied_spec->bytecode = apr_pstrdup(pool, spec->bytecode);
398 copied_spec->file = apr_pstrdup(pool, spec->file);
399 copied_spec->package_cpaths = apr_array_copy(pool, spec->package_cpaths);
400 copied_spec->package_paths = apr_array_copy(pool, spec->package_paths);
401 copied_spec->pool = pool;
407 static apr_status_t server_vm_construct(lua_State **resource, void *params, apr_pool_t *pool)
410 ap_lua_server_spec* spec = apr_pcalloc(pool, sizeof(ap_lua_server_spec));
412 if (vm_construct(&L, params, pool) == APR_SUCCESS) {
413 spec->finfo = apr_pcalloc(pool, sizeof(ap_lua_finfo));
440 hash = apr_psprintf(r->pool, "reslist:%s", spec->file);
445 r->server->process->pool) == APR_SUCCESS) {
454 ap_lua_vm_spec* server_spec = copy_vm_spec(r->server->process->pool, spec);
459 server_spec, r->server->process->pool)
462 r->server->process->pool);
499 mkey = apr_psprintf(r->pool, "ap_lua_modified:%s", spec->file);