MCPcopy Create free account
hub / github.com/acl-dev/acl / thread_oninit

Method thread_oninit

lib_acl_cpp/src/connpool/connect_manager.cpp:261–269  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

259static acl_pthread_key_t once_key;
260
261void connect_manager::thread_oninit()
262{
263 int ret = acl_pthread_key_create(&once_key, thread_onexit);
264 if (ret != 0) {
265 char buf[256];
266 logger_fatal("pthread_key_create error=%s",
267 acl_strerror(ret, buf, sizeof(buf)));
268 }
269}
270
271static acl_pthread_once_t once_control = ACL_PTHREAD_ONCE_INIT;
272

Callers

nothing calls this directly

Calls 2

acl_pthread_key_createFunction · 0.85
acl_strerrorFunction · 0.85

Tested by

no test coverage detected