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

Method event_mutex

lib_acl_cpp/src/event/event_mutex.cpp:12–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10{
11
12event_mutex::event_mutex(bool recursive /* = true */)
13: recursive_(recursive)
14, nested_(0)
15, count_(0)
16, tid_(0)
17{
18 ACL_SOCKET fds[2];
19
20 if (acl_sane_socketpair(AF_UNIX, SOCK_STREAM, 0, fds) < 0) {
21 logger_fatal("socketpair error=%s", last_serror());
22 }
23
24 in_ = fds[0];
25 out_ = fds[1];
26// acl_tcp_nodelay(in_, 1);
27// acl_tcp_nodelay(out_, 1);
28}
29
30event_mutex::~event_mutex(void)
31{

Callers

nothing calls this directly

Calls 2

acl_sane_socketpairFunction · 0.85
last_serrorFunction · 0.50

Tested by

no test coverage detected