proxygen
folly::LifoSemImpl< Atom, BatonType > Struct Template Reference

#include <LifoSem.h>

Inheritance diagram for folly::LifoSemImpl< Atom, BatonType >:
folly::detail::LifoSemBase< BatonType, Atom >

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
 
LifoSemBaseoperator= (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)
 

Detailed Description

template<template< typename > class Atom, class BatonType>
struct folly::LifoSemImpl< Atom, BatonType >

Definition at line 38 of file LifoSem.h.

Constructor & Destructor Documentation

template<template< typename > class Atom, class BatonType>
constexpr folly::LifoSemImpl< Atom, BatonType >::LifoSemImpl ( uint32_t  v = 0)
inlineexplicit

Definition at line 722 of file LifoSem.h.

723  : detail::LifoSemBase<BatonType, Atom>(v) {}
auto v

The documentation for this struct was generated from the following file: