Platforms to show: All Mac Windows Linux Cross-Platform

AtomicFlagMBS class   New in 25.2

Type Topic Plugin Version macOS Windows Linux iOS Targets
class Atomic MBS Util Plugin 25.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The class for an atomic flag.
Example
Var f As New AtomicFlagMBS

// lock
Var b As Boolean = f.TestAndSet
If Not b Then
// got lock
Break

// unlock
f.Clear
Else
// failed to lock
Break
End If

This is an lock-free atomic boolean type.
Can be used to make your own semaphore or critical section class.

See also AtomicIntegerMBS class.

This class has no sub classes.

Blog Entries

Release notes

Some related classes:


The items on this page are in the following plugins: MBS Util Plugin.


Argon2MBS   -   AtomicIntegerMBS


The biggest plugin in space...