Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r80201 - trunk/libs/thread/doc
From: vicente.botet_at_[hidden]
Date: 2012-08-25 09:06:41

Author: viboes
Date: 2012-08-25 09:06:41 EDT (Sat, 25 Aug 2012)
New Revision: 80201

Thread: doc shared mutex lack of priority 7284
Text files modified:
   trunk/libs/thread/doc/shared_mutex_ref.qbk | 1 +
   1 files changed, 1 insertions(+), 0 deletions(-)

Modified: trunk/libs/thread/doc/shared_mutex_ref.qbk
--- trunk/libs/thread/doc/shared_mutex_ref.qbk (original)
+++ trunk/libs/thread/doc/shared_mutex_ref.qbk 2012-08-25 09:06:41 EDT (Sat, 25 Aug 2012)
@@ -58,6 +58,7 @@
 Multiple concurrent calls to __lock_ref__, __try_lock_ref__, `__try_lock_for()`, `__try_lock_until()`, __timed_lock_ref__, __lock_shared_ref__,
 `__try_lock_shared_for()`, `__try_lock_shared_until()`, __try_lock_shared_ref__ and __timed_lock_shared_ref__ are permitted.
+Note the the lack of reader-writer priority policies in shared_mutex. This is due to an algorithm credited to Alexander Terekhov which lets the OS decide which thread is the next to get the lock without caring whether a unique lock or shared lock is being sought. This results in a complete lack of reader or writer starvation. It is simply fair.

Boost-Commit list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at