language/duchain
KDevelop::DUChainReadLocker Class Reference
Customized read locker for the definition-use chain. More...
#include <duchainlock.h>
Public Member Functions | |
| DUChainReadLocker (DUChainLock *duChainLock, uint timeout=0) | |
| ~DUChainReadLocker () | |
| bool | lock () |
| bool | locked () const |
| void | unlock () |
Detailed Description
Customized read locker for the definition-use chain.
Definition at line 118 of file duchainlock.h.
Constructor & Destructor Documentation
| KDevelop::DUChainReadLocker::DUChainReadLocker | ( | DUChainLock * | duChainLock, | |
| uint | timeout = 0 | |||
| ) |
Constructor.
Attempts to acquire a read lock.
- Parameters:
-
duChainLock lock to read-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 350 of file duchainlock.cpp.
| KDevelop::DUChainReadLocker::~DUChainReadLocker | ( | ) |
Destructor.
Definition at line 357 of file duchainlock.cpp.
Member Function Documentation
| bool KDevelop::DUChainReadLocker::lock | ( | ) |
Acquire the read lock (again). Uses the same timeout given to the constructor.
Definition at line 366 of file duchainlock.cpp.
| bool KDevelop::DUChainReadLocker::locked | ( | ) | const |
Returns true if a lock was requested and the lock succeeded, else false.
Definition at line 362 of file duchainlock.cpp.
| void KDevelop::DUChainReadLocker::unlock | ( | ) |
Unlock the read lock.
Definition at line 382 of file duchainlock.cpp.
The documentation for this class was generated from the following files:
KDE 4.4 API Reference