[cpp-threads] Question about RMW.acquire

Raul Silvera rauls at ca.ibm.com
Mon Feb 5 18:44:59 GMT 2007


Sorry for the delay, Peter.. I've been busy with my day job. I've answered
your question on the original note.

--
Raúl E. Silvera         IBM Toronto Lab   Team Lead, Toronto Portable
Optimizer (TPO)
Tel: 905-413-4188 T/L: 969-4188           Fax: 905-413-4854
D2/KC9/8200/MKM



                                                                           
             "Peter Dimov"                                                 
             <pdimov at mmltd.net                                             
             >                                                          To 
             Sent by:                  "C++ threads standardisation"       
             cpp-threads-bounc         <cpp-threads at decadentplace.org.uk>  
             es at decadentplace.                                          cc 
             org.uk                                                        
                                                                   Subject 
                                       Re: [cpp-threads] Question about    
             02/01/07 03:58 PM         RMW.acquire                         
                                                                           
                                                                           
             Please respond to                                             
                C++ threads                                                
              standardisation                                              
             <cpp-threads at deca                                             
             dentplace.org.uk>                                             
                                                                           
                                                                           




Anybody? :-)

Peter Dimov wrote:

> Question:
>
> // x y initially 0
>
> // thread 1
>
> fetchadd_acquire( &x, +1 );
> r1 = load_raw( &y );
>
> // thread 2
>
> fetchadd_acquire( &y, +1 );
> r2 = load_raw( &x );
>
> Is r1,r2 == 0,0 possible?


--
cpp-threads mailing list
cpp-threads at decadentplace.org.uk
http://www.decadentplace.org.uk/cgi-bin/mailman/listinfo/cpp-threads





More information about the cpp-threads mailing list