Results 1 to 2 of 2

Thread: equivalent for std::lock

  1. #1
    Join Date
    Jul 2017
    Posts
    3
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default equivalent for std::lock

    is there a way to lock several QMutexs at the same time like std::Lock offers?
    http://en.cppreference.com/w/cpp/thread/lock
    thanks in advance

  2. #2
    Join Date
    Mar 2011
    Location
    Hyderabad, India
    Posts
    1,882
    Thanks
    3
    Thanked 452 Times in 435 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows
    Wiki edits
    15

    Default Re: equivalent for std::lock

    You can use std::lock.
    When you know how to do it then you may do it wrong.
    When you don't know how to do it then it is not that you may do it wrong but you may not do it right.

Similar Threads

  1. lock
    By madhukumar in forum Qt Programming
    Replies: 2
    Last Post: 16th February 2014, 22:57
  2. lock a file
    By Malek in forum Newbie
    Replies: 2
    Last Post: 27th December 2010, 23:44
  3. Lock a file
    By euthymos in forum Qt Programming
    Replies: 22
    Last Post: 27th December 2010, 23:29
  4. Lock strategy
    By pippo42 in forum Qt Programming
    Replies: 3
    Last Post: 5th May 2010, 10:31
  5. Lock a row in QTreeWidget
    By maka3k in forum Qt Programming
    Replies: 1
    Last Post: 9th March 2010, 13:45

Tags for this Thread

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.