+2
−0
cmds/statsd/src/utils/NamedLatch.cpp
0 → 100644
+48
−0
cmds/statsd/src/utils/NamedLatch.h
0 → 100644
+58
−0
Loading
Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more
This is a sychronizing primitive that is similar to a latch, but a thread must count down with an identifier. It will be used to make sure the boot complete, uid map, and all pullers signals are received before triggering the bucket split. The latch's countDown operation takes in a string identifier, so that if the same operation happens twice, it is only counted once. Bug: 144099206 Test: atest statsd_test Change-Id: I261a3e50eabbc4998ca30ddf2d67a9a1e788911e