Results 1 to 2 of 2

Thread: WaitHandle

  1. #1
    Join Date
    Dec 2011
    Posts
    19
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default WaitHandle

    I have n QSemaphore (s1,s2,s3...) in the same thread and I need to wait that almost one of this is waked is released.
    With the MFC there is the WaitHandle.WaitAny(...) function that permit this.
    Is there something of equivalent with Qt?

    Thanks
    Teo

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: WaitHandle

    I am not sure I understand your use case but it sounds like something you would use a QWaitCondition for instead of semphores

    Cheers,
    _

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.