forked from Pissandshittium/pissandshittium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add thread checker for UniqueNotifier
If we want to guarantee that "Multiple schedules should only result in one run" , we should make sure UniqueNotifier::Schedule and UniqueNotifier::Notify happens at the same thread. If UniqueNotifier::Schedule and UniqueNotifier::Notify happen in different threads, UniqueNotifier::Notify runs in a different thread. Multiple schedules may result in more than one notify. And the more schedules, the high possiblity to more runs. The empirical value is 50000. Bug: None Cq-Include-Trybots: luci.chromium.try:android_optional_gpu_tests_rel;master.tryserver.blink:linux_trusty_blink_rel Change-Id: I6adb3883362670a865bece56f24b64749fa307b7 Reviewed-on: https://chromium-review.googlesource.com/1198491 Commit-Queue: Xing Xu <xing.xu@intel.com> Reviewed-by: Eric Karl <ericrk@chromium.org> Cr-Commit-Position: refs/heads/master@{#594184}
- Loading branch information
Showing
3 changed files
with
25 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters