42 #ifndef QSHAREDMEMORY_P_H 43 #define QSHAREDMEMORY_P_H 58 #ifdef QT_NO_SHAREDMEMORY 59 # ifndef QT_NO_SYSTEMSEMAPHORE 70 #include "private/qobject_p.h" 74 #elif defined(Q_OS_SYMBIAN) 76 # include <sys/types.h> 78 # include <sys/types.h> 83 #ifndef QT_NO_SYSTEMSEMAPHORE 104 if (q_sm && q_sm->lock())
113 #endif // QT_NO_SYSTEMSEMAPHORE 128 #ifndef QT_NO_SYSTEMSEMAPHORE 138 #elif defined(QT_POSIX_IPC) 155 #ifndef QT_NO_SYSTEMSEMAPHORE 157 if (!locker->
lock()) {
164 #endif // QT_NO_SYSTEMSEMAPHORE 169 #elif defined(Q_OS_SYMBIAN) 171 #elif defined(QT_POSIX_IPC) 180 #endif // QT_NO_SHAREDMEMORY 182 #endif // QSHAREDMEMORY_P_H
#define QT_END_NAMESPACE
This macro expands to.
QSharedMemory::SharedMemoryError error
QSystemSemaphore systemSemaphore
void setErrorString(const QString &function)
The QSystemSemaphore class provides a general counting system semaphore.
static QString tr(const char *sourceText, const char *comment=0, int n=-1)
QLatin1String(DBUS_INTERFACE_DBUS))) Q_GLOBAL_STATIC_WITH_ARGS(QString
The QString class provides a Unicode character string.
#define QT_BEGIN_NAMESPACE
This macro expands to.
HANDLE handle()
If not already made create the handle used for accessing the shared memory.
bool attach(QSharedMemory::AccessMode mode)
static int createUnixKeyFile(const QString &fileName)
Creates the unix file if needed.
QString arg(qlonglong a, int fieldwidth=0, int base=10, const QChar &fillChar=QLatin1Char(' ')) const Q_REQUIRED_RESULT
#define Q_DECLARE_PUBLIC(Class)
bool tryLocker(QSharedMemoryLocker *locker, const QString &function)
The QSharedMemory class provides access to a shared memory segment.
#define Q_AUTOTEST_EXPORT
QSharedMemoryLocker(QSharedMemory *sharedMemory)
static QString makePlatformSafeKey(const QString &key, const QString &prefix=QLatin1String("qipc_sharedmemory_"))
Generate a string from the key which can be any unicode string into the subset that the win/unix kern...
static QString fileName(const QString &fileUrl)