[Interest] tryLock for QSystemSemaphore

Thiago Macieira thiago.macieira at intel.com
Sat Oct 21 18:35:36 CEST 2017


On Saturday, 21 October 2017 09:29:49 PDT Konstantin Shegunov wrote:
> Hello,
> Is there any technical reason why QSystemSemaphore doesn't provide a
> `tryLock` method (as the regular one does)? Am I stuck to starting a
> separate thread to "emulate" such a behavior manually or is there a better
> way of achieving it?

The reason is that it was never implemented. I've just checked and both 
backends could have it.

As to what you're stuck with, we need to know what you're trying to do.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center




More information about the Interest mailing list