History log of /system/core/libutils/include/utils/Condition.h
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
f1147f7dded958de403899189b2be85446f42541 28-Feb-2017 Tom Cherry <tomcherry@google.com> Clarify that Condition::wait() can spuriously wake up

Also, remove the clarification that Condition::signal() wakes exactly
one thread as in the presence of spurious wake ups, this clarification
does not provide a safe guarantee to developers.

Bug: 34592766
Test: Build
Change-Id: I34df02e44a70a18fe04ceda858d002ef129c1fd9
/system/core/libutils/include/utils/Condition.h
1fb04ff4e5d401d8a8caca2b4cd34706a883b536 23-Feb-2017 Tom Cherry <tomcherry@google.com> Make Condition use CLOCK_MONOTONIC

Changes to the REALTIME clock can cause Condition::waitRelative() to
timeout early or delayed. This behavior is undesired and new since
https://android-review.googlesource.com/#/c/181058/ moved the
underlying pthread_cond_timedwait() implementation to use absolute
timeouts rather than relative ones. Having Condition use
CLOCK_MONOTONIC prevents these timeout issues.

Bug: 34592766
Bug: 35678943
Test: Boot bullhead
Test: Ensure time changes do not cause Condition::waitRelative() to
timeout early or delayed

Change-Id: I3a8d7a48f9b42fe990c3c7331313b6d85aa546f9
/system/core/libutils/include/utils/Condition.h
75acc7bf81d43850694d39d2c45a20ca81d99379 05-Jan-2017 Vijay Venkatraman <vijaykv@google.com> Exporting C++ headers from system/core

Moved headers from include/libutils and include/libsysutils to
libutils/include and libsysutils/include respectively, so they can be
exported via these libs. They needed to be moved since Soong does
not allow export from external folder.

Added symlink from old locations. They are needed since Soong
includes system/core/include by default. Once all modules are
cleaned up to explicitly add the required libs, the symlinks will be
removed.

Moved headers of libutils to libutils_headers. They should be used
by modules for header-only inlines. Added libutils_headers as
dependency of libutils.

Split of C++ headers into those that have no dependency and those that
have dependency on libutils.so will be handled in a later CL.

Test: Add above libs to shared lib of local module
Change-Id: I122db72056b26b1f39bad1d9a0c2a1c5efda3550
/system/core/libutils/include/utils/Condition.h