Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.lang.c++.moderated    |    Moderated discussion of C++ superhackery    |    33,346 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 31,582 of 33,346    |
|    Alexander Terekhov to Dave Abrahams    |
|    Re: Double checked locking pattern artic    |
|    24 Oct 11 09:46:33    |
   
   From: terekhov@web.de   
      
   Dave Abrahams wrote:   
   [...]   
   > Yes, basically. There are some (expert-only) uses for "half-barriers"   
   > that allow movement of some operations, but mutex locks are basically   
   > always associated with strict, sequentially-consistent barriers.   
      
   I always thought that C++11 mutex locks can be expressed in terms of   
   relaxed C++11 atomic<> operations and acquire/release fences (not the   
   same as memory_order_seq_cst fence).   
      
   (pseudo-code, swap = exchange)   
      
   class swap_based_mutex_for_windows { // noncopyable   
      
    atomic
|
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca