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

Function ph_init_async_lock

modules/pi_http/pi_http.c:129–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

127
128
129int ph_init_async_lock(void)
130{
131 ph_lock = lock_alloc();
132 if (ph_lock==NULL) {
133 LM_ERR("failed to create lock\n");
134 return -1;
135 }
136 if (lock_init(ph_lock)==NULL) {
137 LM_ERR("failed to init lock\n");
138 return -1;
139 }
140 return 0;
141}
142
143
144void ph_destroy_async_lock(void)

Callers 1

mod_initFunction · 0.85

Calls 1

lock_initFunction · 0.85

Tested by

no test coverage detected