language/duchain
KDevelop::DUChainWriteLocker Class Reference
Customized write locker for the definition-use chain. More...
#include <duchainlock.h>
Public Member Functions | |
| DUChainWriteLocker (DUChainLock *duChainLock, uint timeout=0) | |
| ~DUChainWriteLocker () | |
| bool | lock () |
| bool | locked () const |
| void | unlock () |
Detailed Description
Customized write locker for the definition-use chain.
Definition at line 149 of file duchainlock.h.
Constructor & Destructor Documentation
| KDevelop::DUChainWriteLocker::DUChainWriteLocker | ( | DUChainLock * | duChainLock, | |
| uint | timeout = 0 | |||
| ) |
Constructor.
Attempts to acquire a write lock.
- Parameters:
-
duChainLock lock to write-acquire. timeout Timeout in milliseconds. If this is not zero, you've got to check locked() to see whether the lock succeeded.
Definition at line 391 of file duchainlock.cpp.
| KDevelop::DUChainWriteLocker::~DUChainWriteLocker | ( | ) |
Destructor.
Definition at line 398 of file duchainlock.cpp.
Member Function Documentation
| bool KDevelop::DUChainWriteLocker::lock | ( | ) |
Acquire the write lock (again). Uses the same timeout given to the constructor.
Definition at line 404 of file duchainlock.cpp.
| bool KDevelop::DUChainWriteLocker::locked | ( | ) | const |
Returns true if a lock was requested and the lock succeeded, else false.
Definition at line 420 of file duchainlock.cpp.
| void KDevelop::DUChainWriteLocker::unlock | ( | ) |
Unlock the write lock.
Definition at line 424 of file duchainlock.cpp.
The documentation for this class was generated from the following files:
KDE 4.4 API Reference