Contains interlocked native API.
Protected Static Methods | |
| static int32_t | add (int32_t &location, int32_t value) |
| Adds two 32-bit integers and replaces the first integer with the sum, as an atomic operation. | |
| static int64_t | add (int64_t &location, int64_t value) |
| Adds two 64-bit integers and replaces the first integer with the sum, as an atomic operation. | |
| static int32_t | compare_exchange (int32_t &location, int32_t value, int32_t comparand) |
| Compares two 32-bit signed integers for equality and, if they are equal, replaces one of the values. | |
| static int64_t | compare_exchange (int64_t &location, int64_t value, int64_t comparand) |
| Compares two 64-bit signed integers for equality and, if they are equal, replaces one of the values. | |
| static __slong__ | compare_exchange (__slong__ &location, __slong__ value, __slong__ comparand) |
| Compares two slong signed integers for equality and, if they are equal, replaces one of the values. | |
| static void * | compare_exchange (void *&location, void *value, void *comparand) |
| Compares two platform-specific handles or pointers for equality and, if they are equal, replaces one of them. | |
| static int32_t | decrement (int32_t &location) |
| Decrements a specified variable and stores the result, as an atomic operation. | |
| static int64_t | decrement (int64_t &location) |
| Decrements a specified variable and stores the result, as an atomic operation. | |
| static int32_t | exchange (int32_t &location, int32_t value) |
| Sets a 32-bit signed integer to a specified value and returns the original value, as an atomic operation. | |
| static int64_t | exchange (int64_t &location, int64_t value) |
| Sets a 64-bit signed integer to a specified value and returns the original value, as an atomic operation. | |
| static __slong__ | exchange (__slong__ &location, __slong__ value) |
| Sets a slong signed integer to a specified value and returns the original value, as an atomic operation. | |
| static void * | exchange (void *&location, void *value) |
| Sets a platform-specific handles or pointers to a specified value and returns the original value, as an atomic operation. | |
| static int32_t | increment (int32_t &location) |
| Increments a specified variable and stores the result, as an atomic operation. | |
| static int64_t | increment (int64_t &location) |
| Increments a specified variable and stores the result, as an atomic operation. | |
|
staticprotected |
Adds two 32-bit integers and replaces the first integer with the sum, as an atomic operation.
| location | A variable containing the first value to be added. The sum of the two values is stored in location. |
| value | The value to be added to the integer at location. |
|
staticprotected |
Adds two 64-bit integers and replaces the first integer with the sum, as an atomic operation.
| location | A variable containing the first value to be added. The sum of the two values is stored in location. |
| value | The value to be added to the integer at location. |
|
staticprotected |
Compares two 32-bit signed integers for equality and, if they are equal, replaces one of the values.
| location | The destination, whose value is compared with Comparand and possibly replaced. |
| value | The value that replaces the destination value if the comparison results in equality. |
| Comparand | The value that is compared to the value at location. |
|
staticprotected |
Compares two 64-bit signed integers for equality and, if they are equal, replaces one of the values.
| location | The destination, whose value is compared with comparand and possibly replaced. |
| value | The value that replaces the destination value if the comparison results in equality. |
| comparand | The value that is compared to the value at location. |
|
staticprotected |
Compares two slong signed integers for equality and, if they are equal, replaces one of the values.
| location | The destination, whose value is compared with comparand and possibly replaced. |
| value | The value that replaces the destination value if the comparison results in equality. |
| comparand | The value that is compared to the value at location. |
|
staticprotected |
Compares two platform-specific handles or pointers for equality and, if they are equal, replaces one of them.
| location | The destination, whose value is compared with comparand and possibly replaced. |
| value | The value that replaces the destination value if the comparison results in equality. |
| comparand | The value that is compared to the value at location. |
|
staticprotected |
Decrements a specified variable and stores the result, as an atomic operation.
| location | The variable whose value is to be decremented. |
|
staticprotected |
Decrements a specified variable and stores the result, as an atomic operation.
| location | The variable whose value is to be decremented. |
|
staticprotected |
Sets a 32-bit signed integer to a specified value and returns the original value, as an atomic operation.
| location | The variable to set to the specified value. |
| value | The value to which the location parameter is set. |
|
staticprotected |
Sets a 64-bit signed integer to a specified value and returns the original value, as an atomic operation.
| location | The variable to set to the specified value. |
| value | The value to which the location parameter is set. |
|
staticprotected |
Sets a slong signed integer to a specified value and returns the original value, as an atomic operation.
| location | The variable to set to the specified value. |
| value | The value to which the location parameter is set. |
|
staticprotected |
Sets a platform-specific handles or pointers to a specified value and returns the original value, as an atomic operation.
| location | The variable to set to the specified value. |
| value | The value to which the location parameter is set. |
|
staticprotected |
Increments a specified variable and stores the result, as an atomic operation.
| location | The variable whose value is to be incremented. |
|
staticprotected |
Increments a specified variable and stores the result, as an atomic operation.
| location | The variable whose value is to be incremented. |