Home | All Classes | Main Classes | Annotated | Grouped Classes | Functions |
The QLock class is a wrapper for a System V shared semaphore. More...
#include <qlock_qws.h>
It is used by Qt/Embedded for synchronizing access to the graphics card and shared memory region between processes.
See also Input/Output and Networking and Qt/Embedded.
Creates a lock. filename is the file path of the Unix-domain socket the Qt/Embedded client is using. id is the name of the particular lock to be created on that socket. If create is TRUE the lock is to be created (as the Qt/Embedded server does); if create is FALSE the lock should exist already (as the Qt/Embedded client expects).
Destroys a lock
Returns TRUE if the lock constructor was succesful; returns FALSE if the lock could not be created or was not available to connect to.
Returns TRUE if the lock is currently held by the current process; otherwise returns FALSE.
Unlocks the semaphore. If other processes were blocking waiting to lock() the semaphore, one of them will wake up and succeed in lock()ing.
This file is part of the Qt toolkit. Copyright © 1995-2002 Trolltech. All Rights Reserved.
Copyright © 2002 Trolltech | Trademarks | Qt version 3.0.5
|