[Qt-interest] Documentation on Mutex, Semaphore and Critical Section with Qt?
Thiago Macieira
thiago at kde.org
Fri Jan 29 14:33:03 CET 2010
Em Sexta-feira 29 Janeiro 2010, às 11:05:34, Matthias Pospiech escreveu:
> For example I want to reinitialize a class member pointer, it could also
> be a global singleton.
> I have to make sure that not a single class in acting on that pointer
> when I delete it. So I have to do something like
> LockAllUses + WaitForAllUsesToFinish + reinitialize + ReleaseLockedUses
You're describing QReadWriteLock locking for writing.
--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
Senior Product Manager - Nokia, Qt Development Frameworks
PGP/GPG: 0x6EF45358; fingerprint:
E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100129/74653764/attachment.bin
More information about the Qt-interest-old
mailing list