PySide6.QtCore.QBasicReadWriteLock¶
- class QBasicReadWriteLock¶
Inherited by:
QReadWriteLockAdded in version 6.11.
Synopsis¶
Methods¶
def
__init__()def
lock()def
lockForRead()def
lockForWrite()def
lock_shared()def
tryLockForRead()def
try_lock()def
unlock()def
unlock_shared()
Note
This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE
- PySide6.QtCore.QBasicReadWriteLock.StateLockedForRead¶
- PySide6.QtCore.QBasicReadWriteLock.StateLockedForWrite¶
- PySide6.QtCore.QBasicReadWriteLock.StateMask¶
- PySide6.QtCore.QBasicReadWriteLock.Counter¶
- __init__()¶
- contendedTryLockForRead(timeout, dd)¶
- Parameters:
timeout –
QDeadlineTimerdd –
void
- Return type:
bool
- contendedTryLockForWrite(timeout, dd)¶
- Parameters:
timeout –
QDeadlineTimerdd –
void
- Return type:
bool
- contendedUnlock(dd)¶
- Parameters:
dd –
void
- isContendedLockForRead(dd)¶
- Parameters:
dd –
void- Return type:
bool
- lock()¶
- lockForRead()¶
- lockForWrite()¶
- tryLockForRead()¶
- Return type:
bool
- tryLockForRead(timeout)
- Parameters:
timeout –
QDeadlineTimer- Return type:
bool
- tryLockForReadInternal(timeout, tsanFlags)¶
- Parameters:
timeout –
QDeadlineTimertsanFlags – int
- Return type:
bool
- tryLockForWrite()¶
- Return type:
bool
- tryLockForWrite(timeout)
- Parameters:
timeout –
QDeadlineTimer- Return type:
bool
- tryLockForWriteInternal(timeout, tsanFlags)¶
- Parameters:
timeout –
QDeadlineTimertsanFlags – int
- Return type:
bool
- try_lock()¶
- Return type:
bool
- Return type:
bool
- unlock()¶