summaryrefslogtreecommitdiff
path: root/src/mongo/stdx/condition_variable_bm.cpp
AgeCommit message (Collapse)Author
2024-09-14SERVER-90429 Remove diagnostic latches (#27018)Sophia Tan
GitOrigin-RevId: 1244077103b7db17da532acc0cccf830064a96d8
2023-07-01SERVER-77049 SERVER-77050 IWYU automated changes up to 1.0Daniel Moody
2023-02-23SERVER-71742 Move volatile keyword lint to clang-tidyJuan Gu
2019-09-17SERVER-42165 Replace uses of stdx::mutex with mongo::MutexBen Caimano
2019-08-15SERVER-41961 Remove the `NOINLINE_DECL` and replace with ↵ADAM David Alan Martin
`MONGO_COMPILER_NOINLINE` Also removed the `PACKED_DECL`, since it isn't used.
2019-02-13SERVER-39560 - remove leading blank line on all C++ filesBilly Donahue
Remove leading comments that are just stating the filename. Move any file-level comments below the copyright banner. Remove leading blank lines.
2018-10-22SERVER-37651 Update header files with new licenseRamon Fernandez
2018-09-17SERVER-35679 General Interruption FacilityJason Carey
Add support for a generalized interruptibility facility in the server. This offers a generalized interruptibility facility, trialed in Future<T> and ProducerConsumerQueue<T>. It offers 3 major concepts: Notifyable: A type which can notified off-thread, causing a wake up from some kind of blocking wait Waitable: A type which is Notifyable, and also can perform work while in a ready-to-receive notification state. static methods offer support for running underneath condition_variable::wait's. The chief implementer is the transport layer baton type Interruptible: A type which can wait on condition variables, and offers: - deadlines. This means the type integrates some sort of clock source - interruptibility. This means the type offers a way of noticing that it should no longer run via status or exception Additionally, Interruptible's offer special scoped guards which offer - Exemption from interruption in a region defined by the lifetime of a guard object - Subsidiary deadlines which can trigger recursively, offering specialized timeout and status return support. The series of virtual types allows us to slice the interface between opCtx and future such that opctx can use future and future can use opctx. Additionally, cutting out more functionality allows us to flow a noop interruptibility type which unifies our waiting behind a common api.