◆ AtomicBoolean() [1/2]
SendBird.AtomicBoolean.AtomicBoolean |
( |
| ) |
|
|
inline |
Creates a new AtomicBoolean
instance with an initial value of false
.
◆ AtomicBoolean() [2/2]
SendBird.AtomicBoolean.AtomicBoolean |
( |
bool |
value | ) |
|
|
inline |
Creates a new AtomicBoolean
instance with the initial value provided.
◆ CompareAndSet()
bool SendBird.AtomicBoolean.CompareAndSet |
( |
bool |
expected, |
|
|
bool |
result |
|
) |
| |
|
inline |
Atomically sets the value to the given updated value if the current value ==
the expected value.
- Parameters
-
expected | The value to compare against. |
result | The value to set if the value is equal to the expected value. |
- Returns
true
if the comparison and set was successful. A false
indicates the comparison failed.
◆ Get()
bool SendBird.AtomicBoolean.Get |
( |
| ) |
|
|
inline |
This method returns the current value.
- Returns
- The
bool
value to be accessed atomically.
◆ GetAndSet()
bool SendBird.AtomicBoolean.GetAndSet |
( |
bool |
value | ) |
|
|
inline |
This method atomically sets the value and returns the original value.
- Parameters
-
- Returns
- The value before setting to the new value.
◆ operator bool()
static implicit SendBird.AtomicBoolean.operator bool |
( |
AtomicBoolean |
value | ) |
|
|
inlinestatic |
◆ Set()
void SendBird.AtomicBoolean.Set |
( |
bool |
value | ) |
|
|
inline |
This method sets the current value atomically.
- Parameters
-
value | The new value to set. |
The documentation for this class was generated from the following file:
- SendBird/src/AtomicLong.cs