Classes | Public Member Functions | Private Attributes | List of all members
grpc_core::Latch< T > Class Template Reference

#include <latch.h>

Classes

class  WaitPromise
 

Public Member Functions

 Latch ()=default
 
 Latch (const Latch &)=delete
 
 Latch (Latch &&other) noexcept
 
Latchoperator= (const Latch &)=delete
 
Latchoperator= (Latch &&other) noexcept
 
void Set (T value)
 
WaitPromise Wait ()
 

Private Attributes

bool has_had_waiters_ = false
 
bool has_value_ = false
 
GPR_NO_UNIQUE_ADDRESS T value_
 
IntraActivityWaiter waiter_
 

Detailed Description

template<typename T>
class grpc_core::Latch< T >

Definition at line 32 of file latch.h.

Constructor & Destructor Documentation

◆ Latch() [1/3]

template<typename T >
grpc_core::Latch< T >::Latch ( )
default

◆ Latch() [2/3]

template<typename T >
grpc_core::Latch< T >::Latch ( const Latch< T > &  )
delete

◆ Latch() [3/3]

template<typename T >
grpc_core::Latch< T >::Latch ( Latch< T > &&  other)
inlinenoexcept

Definition at line 54 of file latch.h.

Member Function Documentation

◆ operator=() [1/2]

template<typename T >
Latch& grpc_core::Latch< T >::operator= ( const Latch< T > &  )
delete

◆ operator=() [2/2]

template<typename T >
Latch& grpc_core::Latch< T >::operator= ( Latch< T > &&  other)
inlinenoexcept

Definition at line 60 of file latch.h.

◆ Set()

template<typename T >
void grpc_core::Latch< T >::Set ( T  value)
inline

Definition at line 78 of file latch.h.

◆ Wait()

template<typename T >
WaitPromise grpc_core::Latch< T >::Wait ( )
inline

Definition at line 70 of file latch.h.

Member Data Documentation

◆ has_had_waiters_

template<typename T >
bool grpc_core::Latch< T >::has_had_waiters_ = false
private

Definition at line 96 of file latch.h.

◆ has_value_

template<typename T >
bool grpc_core::Latch< T >::has_value_ = false
private

Definition at line 93 of file latch.h.

◆ value_

template<typename T >
GPR_NO_UNIQUE_ADDRESS T grpc_core::Latch< T >::value_
private

Definition at line 91 of file latch.h.

◆ waiter_

template<typename T >
IntraActivityWaiter grpc_core::Latch< T >::waiter_
private

Definition at line 98 of file latch.h.


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


grpc
Author(s):
autogenerated on Fri May 16 2025 03:03:36