summaryrefslogtreecommitdiffhomepage
path: root/test/syscalls/linux/mount.cc
diff options
context:
space:
mode:
authorJamie Liu <jamieliu@google.com>2019-01-09 17:53:31 -0800
committerShentubot <shentubot@google.com>2019-01-09 17:54:40 -0800
commit9270d940eb1a6e31587c34f4644189f3b2c002e1 (patch)
tree64bfac5c7bfa0281891ff76d7865da39ce6e3fc2 /test/syscalls/linux/mount.cc
parent6e91a98f6ba02857e381c0f199c1494c6f1d7839 (diff)
Minor memevent fixes.
- Call MemoryEvents.done.Add(1) outside of MemoryEvents.run() so that if MemoryEvents.Stop() => MemoryEvents.done.Wait() is called before the goroutine starts running, it still waits for the goroutine to stop. - Use defer to call MemoryEvents.done.Done() in MemoryEvents.run() so that it's called even if the goroutine panics. PiperOrigin-RevId: 228623307 Change-Id: I1b0459e7999606c1a1a271b16092b1ca87005015
Diffstat (limited to 'test/syscalls/linux/mount.cc')
0 files changed, 0 insertions, 0 deletions