Results 1 to 2 of 2

Thread: Qt-equivalent of pthread_once

  1. #1
    Join Date
    Apr 2007
    Posts
    62
    Thanks
    43
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Qt-equivalent of pthread_once

    Hi,

    Is there something in Qt that does the equivalent of pthread_once?

    Thanks,

    S.

  2. #2
    Join Date
    Feb 2006
    Location
    Romania
    Posts
    2,744
    Thanks
    8
    Thanked 541 Times in 521 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Qt-equivalent of pthread_once

    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.

  3. The following user says thank you to marcel for this useful post:

    ShaChris23 (15th October 2007)

Similar Threads

  1. setRasterOp Equivalent
    By vermarajeev in forum Qt Programming
    Replies: 22
    Last Post: 31st March 2007, 13:13
  2. Replies: 2
    Last Post: 23rd April 2006, 01:02
  3. what's the equivalent with DPtoLP in windows
    By cocalele in forum Qt Programming
    Replies: 6
    Last Post: 1st March 2006, 06:57
  4. make install equivalent in qmake ...
    By momesana in forum Newbie
    Replies: 3
    Last Post: 20th February 2006, 21:46
  5. PostMessage() across process boundaries equivalent
    By TheKedge in forum Qt Programming
    Replies: 9
    Last Post: 27th January 2006, 00:02

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.