Platforms to show: All Mac Windows Linux Cross-Platform

AtomicQueueMBS class

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 queue.
Example
Var f As New AtomicQueueMBS

// one can add jobs
f.Push New MyJob
f.Push New MyJob

// someone else can pop them from the queue
Do
Var job As MyJob = f.PopLast // or f.PopFirst

job.Process

Loop Until f.count = 0

This can be used for e.g. a job queue, where multiple threads add or remove jobs.

  • 3 properties
  • 20 methods
    • method Add(value as Variant)   New in 26.3
    • method Add(values as AtomicQueueMBS)
    • method Add(values() as Variant)
    • method AddIfAbsent(Value as Variant)   New in 26.3
    • method Clear
    • method Clone as AtomicQueueMBS   New in 26.3
    • method Constructor   New in 26.3
    • method Constructor(value as AtomicQueueMBS)   New in 26.3
    • method Constructor(values() as Variant)   New in 26.3
    • method Contains(value as Variant) as Boolean   New in 26.3
    • method Insert(value as Variant)
    • method Insert(values as AtomicQueueMBS)   New in 26.3
    • method Insert(values() as Variant)   New in 26.3
    • method Operator_Add(value as Variant) as AtomicQueueMBS
    • method Operator_Compare(other as AtomicQueueMBS) as Integer
    • method Operator_Convert as Variant()
    • method PopFirst as Variant
    • method PopLast as Variant
    • method Push(value as Variant)
    • method Values as Variant()

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.


AtomicIntegerMBS   -   AudioPlayThruMBS


The biggest plugin in space...