Hi,
I think that better to solve this task with shared memory... You can
look at the example in QtCreator sources (qtsingleapplication.cpp)
On 03.06.2016 15:54, Etienne Sandré-Chardonnal wrote:
But how can I test if another app is already running with
QSystemSemaphore? I can set a semaphore with a single ressource
(initial value = 1) and lock it, but there is a single method aquire()
which blocks forever if the value is 0. So I can just make the second
process freeze forever until the first one exits.
2016-06-03 12:54 GMT+02:00 Nye <kshegu...@gmail.com
<mailto:kshegu...@gmail.com>>:
Hello,
Have you tried a system semaphore? It should work in this case as
far as I know.
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest