Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

[android] Fix possibly race on undefined behavior #12408

Merged
merged 1 commit into from
Jul 17, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions platform/android/src/run_loop.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ void RunLoop::Impl::removeRunnable(Runnable* runnable) {
}

void RunLoop::Impl::initRunnable(Runnable* runnable) {
std::lock_guard<std::recursive_mutex> lock(mtx);
runnable->iter = runnables.end();
}

Expand Down