[Qt-interest] Documentation on Mutex, Semaphore and Critical Section with Qt?
Sean Harmer
sean.harmer at maps-technology.com
Fri Jan 29 10:56:29 CET 2010
Hi,
On Friday 29 January 2010 09:42:52 Matthias Pospiech wrote:
> I am looking for general introduction and documentation of Mutex,
> Semaphore, Critical Section and such.
> (btw I could not see any difference between mutexes and critical
> sections from what I found on the web).
> Best would be if it would also describe the Qt-way of doing things if Qt
> offers something in that case.
>
> I would also be necessary for me to see examples where these concepts
> are used in a whole class and not only
> a single function, and when it applies across different classes.
>
> Right now I am working with manual locking mechanism across different
> classes and threads, where QMutex
> is not helping at all and I believe all of this could be done better and
> safer.
Take a look at these and the links contained therein:
http://doc.trolltech.com/4.6/threads.html
http://doc.trolltech.com/4.6/examples-threadandconcurrent.html
The examples will give you a good feel for how to use the thread
synchronization classes in practice.
Have fun!
Sean
More information about the Qt-interest-old
mailing list