Public Member Functions | Static Public Member Functions | Static Private Member Functions | Friends | List of all members
absl::synchronization_internal::PerThreadSem Class Reference

#include <per_thread_sem.h>

Public Member Functions

PerThreadSemoperator= (const PerThreadSem &)=delete
 
 PerThreadSem ()=delete
 
 PerThreadSem (const PerThreadSem &)=delete
 

Static Public Member Functions

static std::atomic< int > * GetThreadBlockedCounter ()
 
static void SetThreadBlockedCounter (std::atomic< int > *counter)
 
static void Tick (base_internal::ThreadIdentity *identity)
 

Static Private Member Functions

static void Init (base_internal::ThreadIdentity *identity)
 
static void Post (base_internal::ThreadIdentity *identity)
 
static bool Wait (KernelTimeout t)
 

Friends

class absl::Mutex
 
absl::base_internal::ThreadIdentityCreateThreadIdentity ()
 
class PerThreadSemTest
 

Detailed Description

Definition at line 40 of file per_thread_sem.h.

Constructor & Destructor Documentation

absl::synchronization_internal::PerThreadSem::PerThreadSem ( )
delete
absl::synchronization_internal::PerThreadSem::PerThreadSem ( const PerThreadSem )
delete

Member Function Documentation

std::atomic< int > * absl::synchronization_internal::PerThreadSem::GetThreadBlockedCounter ( )
static

Definition at line 36 of file per_thread_sem.cc.

void absl::synchronization_internal::PerThreadSem::Init ( base_internal::ThreadIdentity identity)
staticprivate

Definition at line 42 of file per_thread_sem.cc.

PerThreadSem& absl::synchronization_internal::PerThreadSem::operator= ( const PerThreadSem )
delete
void absl::synchronization_internal::PerThreadSem::Post ( base_internal::ThreadIdentity identity)
inlinestaticprivate

Definition at line 98 of file per_thread_sem.h.

void absl::synchronization_internal::PerThreadSem::SetThreadBlockedCounter ( std::atomic< int > *  counter)
static

Definition at line 30 of file per_thread_sem.cc.

void absl::synchronization_internal::PerThreadSem::Tick ( base_internal::ThreadIdentity identity)
static

Definition at line 49 of file per_thread_sem.cc.

bool absl::synchronization_internal::PerThreadSem::Wait ( KernelTimeout  t)
inlinestaticprivate

Definition at line 103 of file per_thread_sem.h.

Friends And Related Function Documentation

friend class absl::Mutex
friend

Definition at line 78 of file per_thread_sem.h.

absl::base_internal::ThreadIdentity* CreateThreadIdentity ( )
friend

Definition at line 125 of file create_thread_identity.cc.

friend class PerThreadSemTest
friend

Definition at line 77 of file per_thread_sem.h.


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


abseil_cpp
Author(s):
autogenerated on Tue Jun 18 2019 19:44:39