This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: Patch to mutex.c


On Wed, 20 Sep 2000 Neale.Ferguson@SoftwareAG-USA.com wrote:

> Date: Wed, 20 Sep 2000 12:40:54 -0400
> From: Neale.Ferguson@SoftwareAG-USA.com
> To: kaz@ashi.footprints.net
> Cc: libc-alpha@sources.redhat.com
> Subject: RE: Patch to mutex.c
> 
> I suppose the 1st question I should have asked is "What is the meaning of
> the value that compare_and_swap returns?" 

It's a success indicator. A non-zero value means that the swap was successfully
carried out: the memory location was found to have a value identical to the
old_value parameter, and was thus atomically replaced with the new_value.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]