• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdevelop API Reference
  • KDE Home
  • Contact Us
 

kdevplatform/language/duchain

  • KDevelop
  • DUChainReadLocker
Public Member Functions | List of all members
KDevelop::DUChainReadLocker Class Reference

#include <duchainlock.h>

Public Member Functions

 DUChainReadLocker (DUChainLock *duChainLock=nullptr, unsigned int timeout=0)
 
 ~DUChainReadLocker ()
 
bool lock ()
 
bool locked () const
 
void unlock ()
 

Detailed Description

Customized read locker for the definition-use chain.

Definition at line 114 of file duchainlock.h.

Constructor & Destructor Documentation

◆ DUChainReadLocker()

KDevelop::DUChainReadLocker::DUChainReadLocker ( DUChainLock *  duChainLock = nullptr,
unsigned int  timeout = 0 
)
explicit

Constructor.

Attempts to acquire a read lock.

Parameters
duChainLocklock to read-acquire. If this is left zero, DUChain::lock() is used.
timeoutTimeout in milliseconds. If this is not zero, you've got to check locked() to see whether the lock succeeded.

Definition at line 212 of file duchainlock.cpp.

◆ ~DUChainReadLocker()

KDevelop::DUChainReadLocker::~DUChainReadLocker ( )

Destructor.

Definition at line 220 of file duchainlock.cpp.

Member Function Documentation

◆ lock()

bool KDevelop::DUChainReadLocker::lock ( )

Acquire the read lock (again). Uses the same timeout given to the constructor.

Definition at line 230 of file duchainlock.cpp.

◆ locked()

bool KDevelop::DUChainReadLocker::locked ( ) const

Returns true if a lock was requested and the lock succeeded, else false.

Definition at line 225 of file duchainlock.cpp.

◆ unlock()

void KDevelop::DUChainReadLocker::unlock ( )

Unlock the read lock.

Definition at line 248 of file duchainlock.cpp.


The documentation for this class was generated from the following files:
  • duchainlock.h
  • duchainlock.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Tue Jan 19 2021 23:36:34 by doxygen 1.8.16 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kdevplatform/language/duchain

Skip menu "kdevplatform/language/duchain"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdevelop API Reference

Skip menu "kdevelop API Reference"
  • kdevplatform
  •   debugger
  •   documentation
  •   interfaces
  •   language
  •     assistant
  •     backgroundparser
  •     checks
  •     classmodel
  •     codecompletion
  •     codegen
  •     duchain
  •     editor
  •     highlighting
  •     interfaces
  •     util
  •   outputview
  •   project
  •   serialization
  •   shell
  •   sublime
  •   tests
  •   util
  •   vcs

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal