[Interest] reference counting

Thiago Macieira thiago.macieira at intel.com
Mon Nov 17 18:03:48 CET 2014


On Monday 17 November 2014 12:54:59 René J.V. Bertin wrote:
> Out of curiosity: is QEventLoopLocker thread-safe? That is, can the lock be
> set (increased aka reference counter increment) in a background thread and
> unset (decreased aka reference counter decrement) in  the main thread? This
> happens in KDevelop 4 because it creates (or starts) KJobs in background
> threads but deletes the objects in the main thread, and at least in KDE 4
> it is written nowhere that that is "not done".

Yes, it's thread-safe.

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




More information about the Interest mailing list