Go to file
Christopher Ferris 0724132c32 Fix race condition in timer disarm/delete.
When setting a repeat timer using the SIGEV_THREAD mechanism, it's possible
that the callback can be called after the timer is disarmed or deleted.
This happens because the kernel can generate signals that the timer thread
will continue to handle even after the timer is supposed to be off.

Add two new tests to verify that disarming/deleting doesn't continue to
call the callback.

Modify the repeat test to finish more quickly than before.

Refactor the Counter implementation a bit.

Bug: 18039727
Change-Id: I73192c915cdacf608521b1792c54e5af14a34907
2014-10-21 18:31:02 -07:00
benchmarks Start hiding "private/bionic_time.h". 2014-07-25 15:24:57 -07:00
libc Fix race condition in timer disarm/delete. 2014-10-21 18:31:02 -07:00
libdl Turn on -Wunused and fix the mistakes it uncovers. 2014-06-03 15:22:34 -07:00
libm Use __GNUC_PREREQ rather than __GNUC_PREREQ__ to match glibc. 2014-08-29 16:10:57 -07:00
libstdc++ Hide C++ stuff in libc. Put it back in libstdc++. 2014-08-18 13:56:07 -07:00
linker Fix gdb could not get shared library list issue 2014-10-02 15:35:47 -07:00
tests Fix race condition in timer disarm/delete. 2014-10-21 18:31:02 -07:00
.gitignore Merge memory checking functionality from sandbox 2010-02-16 11:43:18 -08:00
ABI-bugs.txt PTHREAD_KEYS_MAX cleanup. 2013-12-12 12:51:08 -08:00
Android.mk Remove the simulator target from all makefiles. 2011-07-11 22:11:41 -07:00
CleanSpec.mk Make jemalloc the default choice. 2014-07-11 11:01:30 -07:00
HACKING.txt Rewrite syslog(3) to use Android logging. 2014-07-21 18:55:04 -07:00