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>
Include dependency graph for kshareddatacache_p.h:
This graph shows which files directly or indirectly include this file:
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
enum SharedLockId |
Enumerator | |
---|---|
LOCKTYPE_INVALID | |
LOCKTYPE_MUTEX | |
LOCKTYPE_SEMAPHORE | |
LOCKTYPE_SPINLOCK |
Definition at line 328 of file kshareddatacache_p.h.
Function Documentation
|
static |
Definition at line 430 of file kshareddatacache_p.h.
|
static |
Definition at line 467 of file kshareddatacache_p.h.
|
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 364 of file kshareddatacache_p.h.
int ksdcArea | ( | ) |
Definition at line 47 of file kshareddatacache.cpp.
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:47:10 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:47:10 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.