Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
TestRunnerSystemSemaphore Struct Reference
+ Collaboration diagram for TestRunnerSystemSemaphore:

Public Member Functions

 TestRunnerSystemSemaphore ()
 
 ~TestRunnerSystemSemaphore ()
 
void acquire ()
 
void release ()
 

Public Attributes

std::atomic< bool > isAcquired { false }
 
QSystemSemaphore semaphore
 

Detailed Description

Definition at line 668 of file main.cpp.

Constructor & Destructor Documentation

◆ TestRunnerSystemSemaphore()

TestRunnerSystemSemaphore::TestRunnerSystemSemaphore ( )
inline

Definition at line 670 of file main.cpp.

◆ ~TestRunnerSystemSemaphore()

TestRunnerSystemSemaphore::~TestRunnerSystemSemaphore ( )
inline

Definition at line 671 of file main.cpp.

References release().

+ Here is the call graph for this function:

Member Function Documentation

◆ acquire()

void TestRunnerSystemSemaphore::acquire ( )
inline

Definition at line 673 of file main.cpp.

References isAcquired, and semaphore.

Referenced by main().

+ Here is the caller graph for this function:

◆ release()

void TestRunnerSystemSemaphore::release ( )
inline

Definition at line 675 of file main.cpp.

References expected, isAcquired, and semaphore.

Referenced by ~TestRunnerSystemSemaphore(), main(), and sigHandler().

+ Here is the caller graph for this function:

Member Data Documentation

◆ isAcquired

std::atomic<bool> TestRunnerSystemSemaphore::isAcquired { false }

Definition at line 685 of file main.cpp.

Referenced by acquire(), and release().

◆ semaphore

QSystemSemaphore TestRunnerSystemSemaphore::semaphore
Initial value:
{ QSystemSemaphore::platformSafeKey(u"androidtestrunner"_s),
1, QSystemSemaphore::Open }

Definition at line 686 of file main.cpp.

Referenced by acquire(), and release().


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