KDECore
kshareddatacache_p.h File Reference
#include <config-util.h>#include <QtCore/QSharedPointer>#include <QtCore/QBasicAtomicInt>#include <unistd.h>#include <sched.h>#include <errno.h>#include <fcntl.h>#include <time.h>#include <kdebug.h>Go to the source code of this file.
Classes | |
| class | KSDCLock |
| struct | SharedLock |
| class | simpleSpinLock |
Enumerations | |
| enum | SharedLockId { LOCKTYPE_INVALID = 0, LOCKTYPE_MUTEX = 1, LOCKTYPE_SEMAPHORE = 2, LOCKTYPE_SPINLOCK = 3 } |
Functions | |
| static KSDCLock * | createLockFromId (SharedLockId id, SharedLock &lock) |
| static bool | ensureFileAllocated (int fd, size_t fileSize) |
| static SharedLockId | findBestSharedLock () |
| int | ksdcArea () |
Enumeration Type Documentation
◆ SharedLockId
| enum SharedLockId |
| Enumerator | |
|---|---|
| LOCKTYPE_INVALID | |
| LOCKTYPE_MUTEX | |
| LOCKTYPE_SEMAPHORE | |
| LOCKTYPE_SPINLOCK | |
Definition at line 332 of file kshareddatacache_p.h.
Function Documentation
◆ createLockFromId()
|
static |
Definition at line 434 of file kshareddatacache_p.h.
◆ ensureFileAllocated()
|
static |
Definition at line 471 of file kshareddatacache_p.h.
◆ findBestSharedLock()
|
static |
This is a method to determine the best lock type to use for a shared cache, based on local support.
An identifier to the appropriate SharedLockId is returned, which can be passed to createLockFromId().
Definition at line 368 of file kshareddatacache_p.h.
◆ ksdcArea()
| int ksdcArea | ( | ) |
Definition at line 47 of file kshareddatacache.cpp.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sat Jan 18 2020 18:58:52 by doxygen 1.8.15 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sat Jan 18 2020 18:58:52 by doxygen 1.8.15 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.