• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdelibs-4.10.5 API Reference
  • KDE Home
  • Contact Us
 

KDECore

  • kdecore
  • util
Classes | Enumerations | Functions
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
 This class defines an interface used by KSharedDataCache::Private to offload proper locking and unlocking depending on what the platform supports at runtime and compile-time. More...
struct  SharedLock
class  simpleSpinLock
 This is a very basic lock that should work on any system where GCC atomic intrinsics are supported. More...

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 KSDCLock* createLockFromId ( SharedLockId  id,
SharedLock &  lock 
)
static

Definition at line 430 of file kshareddatacache_p.h.

static bool ensureFileAllocated ( int  fd,
size_t  fileSize 
)
static

Definition at line 467 of file kshareddatacache_p.h.

static SharedLockId 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 364 of file kshareddatacache_p.h.

int ksdcArea ( )

Definition at line 49 of file kshareddatacache.cpp.

This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Tue Jul 16 2013 11:43:34 by doxygen 1.8.1.1 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KDECore

Skip menu "KDECore"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Modules
  • Related Pages

kdelibs-4.10.5 API Reference

Skip menu "kdelibs-4.10.5 API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
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