kdevplatform/language/duchain
KDevelop::DUChainWriteLocker Class Reference
#include <duchainlock.h>
Public Member Functions | |
DUChainWriteLocker (DUChainLock *duChainLock=nullptr, unsigned int timeout=0) | |
~DUChainWriteLocker () | |
bool | lock () |
bool | locked () const |
void | unlock () |
Detailed Description
Customized write locker for the definition-use chain.
Definition at line 148 of file duchainlock.h.
Constructor & Destructor Documentation
◆ DUChainWriteLocker()
|
explicit |
Constructor.
Attempts to acquire a write lock.
- Parameters
-
duChainLock lock to write-acquire. If this is left zero, DUChain::lock() is used. timeout Timeout in milliseconds. If this is not zero, you've got to check locked() to see whether the lock succeeded.
Definition at line 256 of file duchainlock.cpp.
◆ ~DUChainWriteLocker()
KDevelop::DUChainWriteLocker::~DUChainWriteLocker | ( | ) |
Destructor.
Definition at line 264 of file duchainlock.cpp.
Member Function Documentation
◆ lock()
bool KDevelop::DUChainWriteLocker::lock | ( | ) |
Acquire the write lock (again). Uses the same timeout given to the constructor.
Definition at line 269 of file duchainlock.cpp.
◆ locked()
bool KDevelop::DUChainWriteLocker::locked | ( | ) | const |
Returns true if a lock was requested and the lock succeeded, else false.
Definition at line 287 of file duchainlock.cpp.
◆ unlock()
void KDevelop::DUChainWriteLocker::unlock | ( | ) |
Unlock the write lock.
Definition at line 292 of file duchainlock.cpp.
The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Sun Mar 7 2021 23:29:31 by doxygen 1.8.16 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2021 The KDE developers.
Generated on Sun Mar 7 2021 23:29:31 by doxygen 1.8.16 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.