On quinta-feira, 20 de setembro de 2012 15.50.12, Tony Van Eerd wrote:
> > We check for that case shortly after:
> >
> >
> > 361     if (d != d_ptr.loadAcquire()) {
> > 362        //Either the mutex is already unlocked, or relocked with
> > another mutex
> > 363        d->deref();
> > 364        continue;
> > 365     }
> >
> >
>
> Or course.  Very next lines!  "shortly after" is a being nice to me.  Sorry.
>
> I wonder if the Acquire couldn't be Relaxed...

Acquire is correct, since we'll use some of the fields that requires memory
ordering, like the id or waiters fields.

--
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center
     Intel Sweden AB - Registration Number: 556189-6027
     Knarrarnäsgatan 15, 164 40 Kista, Stockholm, Sweden

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
Development mailing list
Development@qt-project.org
http://lists.qt-project.org/mailman/listinfo/development

Reply via email to