|
Boost Users : |
Subject: [Boost-users] [boost::mutex] Do they block or wait?
From: Panagiotis Foteinos (pafotein_at_[hidden])
Date: 2011-03-31 12:55:53
Hello users.
I looked into the documentation, but it is still unclear to me.
When a thread locks() an already acquired mutex, does it block (i.e. does it
do nothing?) releasing all the resources or it loops wasting cpu cycles that
another thread could utilize? In other words, is boost's locking mechanism
blocking or spinning?
Best Regards,
Panagiotis Foteinos
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net