Class: AtomicInt32

AtomicInt32

An atomic int32 data type.

new html.ThreadPool.AtomicInt32 ()

Properties:
Name Type Description
value number

The current value.

Methods

add (v)number

Adds a value.

Name Type Description
v number

The value to add.

Returns:
Type Description
number The old value.

and (v)number

Computes the bitwise AND with a value.

Name Type Description
v number

The value.

Returns:
Type Description
number The old value.

or (v)number

Computes the bitwise OR with a value.

Name Type Description
v number

The value.

Returns:
Type Description
number The old value.

sub (v)number

Subtracts a value.

Name Type Description
v number

The value to subtract.

Returns:
Type Description
number The old value.