Fix spurious wake up in dynamic adapter am: 5ccb147bb8
Original change: https://googleplex-android-review.googlesource.com/c/platform/vendor/widevine/+/22686796 Change-Id: Ic6cee6974f33b2b3fc263c43ba8e82d8cb3ea5ff Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -532,7 +532,10 @@ class WatchDog {
|
||||
{
|
||||
std::unique_lock<std::mutex> lock(mutex_);
|
||||
if (running_) {
|
||||
condition_.wait_for(lock, std::chrono::minutes(2));
|
||||
if (!condition_.wait_for(lock, std::chrono::minutes(2),
|
||||
[this]() { return !running_; })) {
|
||||
LOGE("Level3 initialization timed out");
|
||||
}
|
||||
}
|
||||
if (running_) {
|
||||
gave_up_ = true;
|
||||
@@ -857,7 +860,8 @@ class Adapter {
|
||||
for (auto& name : library_names) {
|
||||
level1_library_ = dlopen((name.c_str()), RTLD_NOW);
|
||||
if (!level1_library_) {
|
||||
LOGW("Could not load oemcrypto from path %s. %s", name.c_str(), dlerror());
|
||||
LOGW("Could not load oemcrypto from path %s. %s", name.c_str(),
|
||||
dlerror());
|
||||
}
|
||||
}
|
||||
if (!level1_library_) {
|
||||
|
||||
Reference in New Issue
Block a user