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

KDECore

  • sources
  • kde-4.14
  • kdelibs
  • 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>
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 332 of file kshareddatacache_p.h.

Function Documentation

static KSDCLock* createLockFromId ( SharedLockId  id,
SharedLock &  lock 
)
static

Definition at line 434 of file kshareddatacache_p.h.

static bool ensureFileAllocated ( int  fd,
size_t  fileSize 
)
static

Definition at line 471 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 368 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-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:22:12 by doxygen 1.8.7 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 API Reference

Skip menu "kdelibs 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

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