Commit 67f3af26 by Abseil Team Committed by Copybara-Service

Fix documentation on when SpinLock is async-signal-safe

PiperOrigin-RevId: 582426024
Change-Id: Ic8650de4faff9688f4cb5529c1df9bc752878b5a
parent 14158405
...@@ -19,10 +19,10 @@ ...@@ -19,10 +19,10 @@
// - for use by Abseil internal code that Mutex itself depends on // - for use by Abseil internal code that Mutex itself depends on
// - for async signal safety (see below) // - for async signal safety (see below)
// SpinLock is async signal safe. If a spinlock is used within a signal // SpinLock with a base_internal::SchedulingMode::SCHEDULE_KERNEL_ONLY is async
// handler, all code that acquires the lock must ensure that the signal cannot // signal safe. If a spinlock is used within a signal handler, all code that
// arrive while they are holding the lock. Typically, this is done by blocking // acquires the lock must ensure that the signal cannot arrive while they are
// the signal. // holding the lock. Typically, this is done by blocking the signal.
// //
// Threads waiting on a SpinLock may be woken in an arbitrary order. // Threads waiting on a SpinLock may be woken in an arbitrary order.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment