[Qt-interest] efficient Wait for Thread finished?
Matthias Pospiech
matthias.pospiech at gmx.de
Tue Jan 20 17:43:27 CET 2009
Arnold Krille schrieb:
> How is your simulation transfering the data to the save-thread? Via
> Qt-ways? Then why not control access to the save-thread with a mutex
> and use the automatic wait of QMutex::lock() / QMutexLocker()?
>
I was trying to implement the wait() using a mutex.islocked(). However
there is no such function.
So if I use
void SaveDataThread::saveData()
{
QMutexLocker locker(&mutex);
...
}
how do I test in all the other member functions that the saveData is
still running? I could not find any such function in Mutex or MutexLocker.
More information about the Qt-interest-old
mailing list