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

Function acl_atomic_clock_users_add

lib_acl/src/stdlib/acl_atomic.c:259–269  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

257}
258
259long long acl_atomic_clock_users_add(ACL_ATOMIC_CLOCK *clk, int n)
260{
261 long long now;
262 struct timeval tv;
263
264 gettimeofday(&tv, NULL);
265 now = (long long) tv.tv_sec * 1000000 + (long long) tv.tv_usec;
266 acl_atomic_int64_set(clk->atime_atomic, now);
267
268 return acl_atomic_int64_add_fetch(clk->users_atomic, n);
269}
270
271void acl_atomic_clock_users_count_inc(ACL_ATOMIC_CLOCK *clk)
272{

Callers 3

fiber_server.cppFile · 0.85
fiber_clientFunction · 0.85

Calls 3

acl_atomic_int64_setFunction · 0.85
gettimeofdayFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…