KDECore
kshareddatacache_p.h
Go to the documentation of this file.
52#warning "No support for POSIX timeouts -- application hangs are possible if the cache is corrupt"
55#if defined(_POSIX_THREAD_PROCESS_SHARED) && ((_POSIX_THREAD_PROCESS_SHARED == 0) || (_POSIX_THREAD_PROCESS_SHARED >= 200112L))
65#if defined(__GNUC__) && !defined(KSDC_SEMAPHORES_SUPPORTED) && !defined(KSDC_THREAD_PROCESS_SHARED_SUPPORTED)
66#warning "No system support claimed for process-shared synchronization, KSharedDataCache will be mostly useless."
69#if defined(_POSIX_MAPPED_FILES) && ((_POSIX_MAPPED_FILES == 0) || (_POSIX_MAPPED_FILES >= 200112L))
73#if defined(_POSIX_SYNCHRONIZED_IO) && ((_POSIX_SYNCHRONIZED_IO == 0) || (_POSIX_SYNCHRONIZED_IO >= 200112L))
84#if (defined(_POSIX_ADVISORY_INFO) && ((_POSIX_ADVISORY_INFO == 0) || (_POSIX_ADVISORY_INFO >= 200112L))) || defined(__APPLE__)
205 if (::sysconf(_SC_THREAD_PROCESS_SHARED) >= 200112L && pthread_mutexattr_init(&mutexAttr) == 0) {
337};
This class defines an interface used by KSharedDataCache::Private to offload proper locking and unloc...
Definition kshareddatacache_p.h:101
virtual bool initialize(bool &processSharingSupported)
Definition kshareddatacache_p.h:109
Definition kaboutdata.h:33
This is a very basic lock that should work on any system where GCC atomic intrinsics are supported.
Definition kshareddatacache_p.h:131
simpleSpinLock(QBasicAtomicInt &spinlock)
Definition kshareddatacache_p.h:133
virtual bool initialize(bool &processSharingSupported)
Definition kshareddatacache_p.h:138
static int posix_fallocate(int fd, off_t offset, off_t len)
Definition posix_fallocate_mac.h:51
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Thu Jul 20 2023 00:00:00 by doxygen 1.9.8 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Thu Jul 20 2023 00:00:00 by doxygen 1.9.8 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.