| Index: base/synchronization/cancellation_flag.h
|
| diff --git a/base/synchronization/cancellation_flag.h b/base/synchronization/cancellation_flag.h
|
| index 51a4def1eb31984f0eafeb97dbd0d8678541ee59..0f0f08ee8f70ab0f49d60c9a0b8770cba220a1eb 100644
|
| --- a/base/synchronization/cancellation_flag.h
|
| +++ b/base/synchronization/cancellation_flag.h
|
| @@ -29,6 +29,11 @@ class BASE_EXPORT CancellationFlag {
|
| void Set();
|
| bool IsSet() const; // Returns true iff the flag was set.
|
|
|
| + // For subtle reasons that may be different on different architectures,
|
| + // a different thread testing IsSet() may erroneously read 'true' after
|
| + // this method has been called.
|
| + void UnsafeResetForTesting();
|
| +
|
| private:
|
| base::subtle::Atomic32 flag_;
|
| #if !defined(NDEBUG)
|
|
|