Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

PR_AtomicAdd

Syntax

#include <pratom.h> 

PRInt32 PR_AtomicAdd(
  PRInt32 *ptr, 
  PRInt32 val);

Parameter

The function has the following parameters:

ptr
A pointer to the value to increment.
val
A value to be added.

Returns

The returned value is the result of the addition.

Description

Atomically add a 32 bit value.

 

Document Tags and Contributors

 Contributors to this page: teoli, kscarfone, balah
 Last updated by: teoli,