KDECore
simpleSpinLock Class Reference
#include <kshareddatacache_p.h>
Inheritance diagram for simpleSpinLock:

Public Member Functions | |
simpleSpinLock (QBasicAtomicInt &spinlock) | |
virtual bool | initialize (bool &processSharingSupported) |
virtual bool | lock () |
virtual void | unlock () |
![]() | |
virtual | ~KSDCLock () |
virtual bool | initialize (bool &processSharingSupported) |
virtual bool | lock () |
virtual void | unlock () |
Detailed Description
This is a very basic lock that should work on any system where GCC atomic intrinsics are supported.
It can waste CPU so better primitives should be used if available on the system.
Definition at line 130 of file kshareddatacache_p.h.
Constructor & Destructor Documentation
◆ simpleSpinLock()
|
inline |
Definition at line 133 of file kshareddatacache_p.h.
Member Function Documentation
◆ initialize()
Reimplemented from KSDCLock.
Definition at line 138 of file kshareddatacache_p.h.
◆ lock()
|
inlinevirtual |
Reimplemented from KSDCLock.
Definition at line 146 of file kshareddatacache_p.h.
◆ unlock()
|
inlinevirtual |
Reimplemented from KSDCLock.
Definition at line 163 of file kshareddatacache_p.h.
The documentation for this class was generated from the following file:
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.