Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
src_corelib_thread_qsemaphore.cpp File Reference

(37f1fb78eeb107d593f9a7bf0491466a1c60e068)

Go to the source code of this file.

Functions

sem acquire (3)
 
sem acquire (2)
 
sem release (5)
 
sem tryAcquire (1)
 
sem tryAcquire (250)
 
sem acquire (5)
 
sem release (10)
 
sem tryAcquire (3)
 
sem tryAcquire (250, 1000)
 
sem tryAcquire (3, 30000)
 
sem tryAcquire (250, QDeadlineTimer(1000))
 
sem tryAcquire (3, QDeadlineTimer(30s))
 
sem release ()
 [tryAcquire-QDeadlineTimer]
 
 if (someCondition)
 [5]
 
releaser cancel ()
 [6]
 

Variables

QSemaphore sem (5)
 [0]
 
const QSemaphoreReleaser releaser (sem) = QSemaphoreReleaser(sem, 42)
 [4]
 

Function Documentation

◆ acquire() [1/3]

sem acquire ( 2 )

◆ acquire() [2/3]

sem acquire ( 3 )

◆ acquire() [3/3]

sem acquire ( 5 )

◆ cancel()

releaser cancel ( )

[6]

[7]

◆ if()

if ( someCondition )
Initial value:
{
The QSemaphoreReleaser class provides exception-safe deferral of a QSemaphore::release() call.
Definition qsemaphore.h:67
const QSemaphoreReleaser releaser(sem)
[4]

[5]

[6]

Definition at line 59 of file src_corelib_thread_qsemaphore.cpp.

◆ release() [1/3]

sem release ( )

[tryAcquire-QDeadlineTimer]

[4]

◆ release() [2/3]

sem release ( 10 )

◆ release() [3/3]

sem release ( 5 )

◆ tryAcquire() [1/7]

sem tryAcquire ( 1 )

◆ tryAcquire() [2/7]

sem tryAcquire ( 250 )

◆ tryAcquire() [3/7]

sem tryAcquire ( 250 ,
1000  )

◆ tryAcquire() [4/7]

sem tryAcquire ( 250 ,
QDeadlineTimer(1000)  )

◆ tryAcquire() [5/7]

sem tryAcquire ( 3 )

◆ tryAcquire() [6/7]

sem tryAcquire ( 3 ,
30000  )

◆ tryAcquire() [7/7]

sem tryAcquire ( 3 ,
QDeadlineTimer(30s)  )

Variable Documentation

◆ releaser

const QSemaphoreReleaser releaser ( sem ) = QSemaphoreReleaser(sem, 42)

[4]

[5]

Definition at line 69 of file src_corelib_thread_qsemaphore.cpp.

◆ sem

QSemaphore sem ( 5 )

[0]

[1]

[2]

[3]

[tryAcquire-QDeadlineTimer]