proxygen
|
#include <LifoSem.h>
Public Member Functions | |
constexpr | LifoSemImpl (uint32_t v=0) |
Public Member Functions inherited from folly::detail::LifoSemBase< BatonType, Atom > | |
constexpr | LifoSemBase (uint32_t initialValue=0) |
Constructor. More... | |
LifoSemBase (LifoSemBase const &)=delete | |
LifoSemBase & | operator= (LifoSemBase const &)=delete |
bool | post () |
Silently saturates if value is already 2^32-1. More... | |
void | post (uint32_t n) |
bool | isShutdown () const |
Returns true iff shutdown() has been called. More... | |
void | shutdown () |
bool | tryWait () |
Returns true iff value was decremented. More... | |
uint32_t | tryWait (uint32_t n) |
void | wait () |
bool | try_wait_for (const std::chrono::duration< Rep, Period > &timeout) |
bool | try_wait_until (const std::chrono::time_point< Clock, Duration > &deadline) |
uint32_t | valueGuess () const |
Additional Inherited Members | |
Protected Types inherited from folly::detail::LifoSemBase< BatonType, Atom > | |
enum | WaitResult |
typedef std::unique_ptr< LifoSemNode< BatonType, Atom >, LifoSemNodeRecycler< BatonType, Atom > > | UniquePtr |
Protected Member Functions inherited from folly::detail::LifoSemBase< BatonType, Atom > | |
UniquePtr | allocateNode (Args &&...args) |
Returns a node that can be passed to decrOrLink. More... | |
WaitResult | tryWaitOrPush (LifoSemNode< BatonType, Atom > &waiterNode) |
|
inlineexplicit |