DescriptionAvoid hang in OncePtr test with --threads 1
Avoid hang in OncePtr test when using "dm --threads 1".
The test will hang the threads until sk_num_cores() threads have run
the code. This requires that sk_num_cores() threads to be run in
parallel, which the global thread pool will not do if the thread count
is smaller than sk_num_cores().
BUG=skia:
Committed: https://skia.googlesource.com/skia/+/7f97a76b805b4cc05f83a965063767f0256ea270
Patch Set 1 #
Total comments: 5
Patch Set 2 : address review comments #
Total comments: 1
Patch Set 3 : #
Dependent Patchsets: Messages
Total messages: 13 (3 generated)
|