Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
OnceCallbackHolder: Swap has_run_ to std::atomic
has_run_ is a flag used to check that a callback is only run once. Convert from Atomic32 to std::atomic<bool> - they are broadly supported, do not implicitly convert to/from integers, and we are converting code to use them. No behavior change expected. Bug: 1194917 Change-Id: I1fca86f5cfb88e5a591f6f1af9b9dc5271ef4472 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4320832 Reviewed-by: Benoit Lize <lizeb@chromium.org> Reviewed-by: danakj <danakj@chromium.org> Commit-Queue: Venkatesh Srinivas <venkateshs@chromium.org> Cr-Commit-Position: refs/heads/main@{#1119089}
- Loading branch information