Hey, there are QT ways of using a semaphore http://qt-project.org/doc/qt-4.8/threads-semaphores.html