[Interest] Detecting if the application is already running from another user account
Etienne Sandré-Chardonnal
etienne.sandre at m4x.org
Fri Jun 3 14:54:13 CEST 2016
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 <kshegunov at gmail.com>:
> Hello,
> Have you tried a system semaphore? It should work in this case as far as I
> know.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20160603/065091e7/attachment.html>
More information about the Interest
mailing list