Method Set
Set()
Sets the flag to true if it is not already set. This method is thread-safe.
Performance Note: Uses Exchange(ref double, double) to ensure atomicity of the set operation. Marked for aggressive inlining to reduce method call overhead.
Returns: True if the flag was set by this call; false if the flag was already set.
Declaration
public bool Set()
Returns
Type | Description |
---|---|
bool |