Class AtomicBoolean
Inheritance
System.Object
AtomicBoolean
Assembly: Steeltoe.Common.Abstractions.dll
Syntax
public class AtomicBoolean : object
Constructors
|
Edit this page
View Source
AtomicBoolean()
Declaration
|
Edit this page
View Source
AtomicBoolean(Boolean)
Declaration
public AtomicBoolean(bool value)
Parameters
Type |
Name |
Description |
System.Boolean |
value |
|
Properties
|
Edit this page
View Source
Value
Declaration
public bool Value { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Methods
|
Edit this page
View Source
CompareAndSet(Boolean, Boolean)
Declaration
public bool CompareAndSet(bool expected, bool update)
Parameters
Type |
Name |
Description |
System.Boolean |
expected |
|
System.Boolean |
update |
|
Returns
Type |
Description |
System.Boolean |
|
|
Edit this page
View Source
GetAndSet(Boolean)
Declaration
public bool GetAndSet(bool newValue)
Parameters
Type |
Name |
Description |
System.Boolean |
newValue |
|
Returns
Type |
Description |
System.Boolean |
|