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

◆ PerThreadSem() [1/2]

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

◆ PerThreadSem() [2/2]

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

Member Function Documentation

◆ GetThreadBlockedCounter()

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

Definition at line 36 of file per_thread_sem.cc.

◆ Init()

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

Definition at line 42 of file per_thread_sem.cc.

◆ operator=()

PerThreadSem& absl::synchronization_internal::PerThreadSem::operator= ( const PerThreadSem )
delete

◆ Post()

void absl::synchronization_internal::PerThreadSem::Post ( base_internal::ThreadIdentity identity)
inlinestaticprivate

Definition at line 98 of file per_thread_sem.h.

◆ SetThreadBlockedCounter()

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

Definition at line 30 of file per_thread_sem.cc.

◆ Tick()

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

Definition at line 49 of file per_thread_sem.cc.

◆ Wait()

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

Definition at line 103 of file per_thread_sem.h.

Friends And Related Function Documentation

◆ absl::Mutex

friend class absl::Mutex
friend

Definition at line 78 of file per_thread_sem.h.

◆ CreateThreadIdentity

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

Definition at line 125 of file create_thread_identity.cc.

◆ PerThreadSemTest

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 Mon Feb 28 2022 21:31:23