MCPcopy Create free account
hub / github.com/OpenSIPS/opensips / mi_http_init_async_lock

Function mi_http_init_async_lock

modules/mi_html/http_fnc.c:290–302  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

288
289
290int mi_http_init_async_lock(void)
291{
292 mi_http_lock = lock_alloc();
293 if (mi_http_lock==NULL) {
294 LM_ERR("failed to create lock\n");
295 return -1;
296 }
297 if (lock_init(mi_http_lock)==NULL) {
298 LM_ERR("failed to init lock\n");
299 return -1;
300 }
301 return 0;
302}
303
304
305void mi_http_destroy_async_lock(void)

Callers 1

proc_initFunction · 0.85

Calls 1

lock_initFunction · 0.85

Tested by

no test coverage detected