View Full Version : Qt-equivalent of pthread_once
ShaChris23
15th October 2007, 21:51
Hi,
Is there something in Qt that does the equivalent of pthread_once?
Thanks,
S.
marcel
15th October 2007, 21:57
No, there isn't but why do you need it for?
It is only used for initialization purposes.
Maybe you can use QTimer::setSignleShot(true) or a thread without an event loop that just runs its run() once and terminates.
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.