View Full Version : Mutex between two or more process
bred
1st November 2010, 14:19
In the qt libs there exists the possibility to create a mutex shared between two or more process?
I'm searching something with the function tryLock() (similar to the function described in the QMutex class).
Tnx.
tbscope
1st November 2010, 14:36
Is this what you're looking for?
http://doc.qt.nokia.com/4.7/qsharedmemory.html
bred
1st November 2010, 15:05
Is this what you're looking for?
http://doc.qt.nokia.com/4.7/qsharedmemory.html
Yes and No.
No: I'm searching for something with the tryLock() member function.
The tryLock() function exits immediately by returning false if the Mutex is locked.
Yes: It's shared between two or more process.
franz
1st November 2010, 15:27
Oh wait.. between processes, never mind...
bred
1st November 2010, 15:43
Oh wait.. between processes, never mind...
Not in my case.
But it's also possible to implement a traLock() function starting from the QSharedMemory.
If there's not any others solution.
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.