Public Member Functions | Private Attributes | List of all members
bloaty::ThreadSafeIterIndex Class Reference

Public Member Functions

void Abort (string_view error)
 
 ThreadSafeIterIndex (int max)
 
bool TryGetError (std::string *error)
 
bool TryGetNext (int *index)
 

Private Attributes

std::string error_
 
std::atomic< intindex_
 
const int max_
 
std::mutex mutex_
 

Detailed Description

Definition at line 1319 of file bloaty.cc.

Constructor & Destructor Documentation

◆ ThreadSafeIterIndex()

bloaty::ThreadSafeIterIndex::ThreadSafeIterIndex ( int  max)
inline

Definition at line 1321 of file bloaty.cc.

Member Function Documentation

◆ Abort()

void bloaty::ThreadSafeIterIndex::Abort ( string_view  error)
inline

Definition at line 1333 of file bloaty.cc.

◆ TryGetError()

bool bloaty::ThreadSafeIterIndex::TryGetError ( std::string *  error)
inline

Definition at line 1339 of file bloaty.cc.

◆ TryGetNext()

bool bloaty::ThreadSafeIterIndex::TryGetNext ( int index)
inline

Definition at line 1323 of file bloaty.cc.

Member Data Documentation

◆ error_

std::string bloaty::ThreadSafeIterIndex::error_
private

Definition at line 1351 of file bloaty.cc.

◆ index_

std::atomic<int> bloaty::ThreadSafeIterIndex::index_
private

Definition at line 1350 of file bloaty.cc.

◆ max_

const int bloaty::ThreadSafeIterIndex::max_
private

Definition at line 1353 of file bloaty.cc.

◆ mutex_

std::mutex bloaty::ThreadSafeIterIndex::mutex_
private

Definition at line 1352 of file bloaty.cc.


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


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