a place reserved by the least of the iterations that want it
More...
#include <ADS/parallel/SpeculativeFor.h>
|
| void | reserve (std::size_t i) noexcept |
| | keeps \( i \) if it is less than the iteration there (a priority write, by compare-and-swap)
|
| bool | check (std::size_t i) const noexcept |
| | whether \( i \) holds the place
|
| bool | reserved (void) const noexcept |
| | whether some iteration holds the place
|
| void | reset (void) noexcept |
| | frees the place
|
| bool | checkReset (std::size_t i) noexcept |
| | frees the place if \( i \) holds it; whether it did
|
|
| static constexpr std::size_t | NONE = std::numeric_limits< std::size_t >::max() |
| | no iteration
|
a place reserved by the least of the iterations that want it
◆ check()
| bool ADS::Reservation::check |
( |
std::size_t | i | ) |
const |
|
inlinenodiscardnoexcept |
whether \( i \) holds the place
◆ checkReset()
| bool ADS::Reservation::checkReset |
( |
std::size_t | i | ) |
|
|
inlinenoexcept |
frees the place if \( i \) holds it; whether it did
◆ reserve()
| void ADS::Reservation::reserve |
( |
std::size_t | i | ) |
|
|
inlinenoexcept |
keeps \( i \) if it is less than the iteration there (a priority write, by compare-and-swap)
◆ reserved()
| bool ADS::Reservation::reserved |
( |
void | | ) |
const |
|
inlinenodiscardnoexcept |
whether some iteration holds the place
◆ reset()
| void ADS::Reservation::reset |
( |
void | | ) |
|
|
inlinenoexcept |
◆ NONE
| std::size_t ADS::Reservation::NONE = std::numeric_limits< std::size_t >::max() |
|
staticconstexpr |
The documentation for this class was generated from the following file: