Platforms to show: All Mac Windows Linux Cross-Platform

Back to MutexMBS class.

MutexMBS.Handle as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Process MBS Util Plugin 8.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The internal used reference to the native mutex object.
Example
Var m as new MutexMBS
MsgBox "Handle: "+hex(m.Handle)

Windows Mutex or PThread Mutex.
(Read and Write property)

MutexMBS.LockCount as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Process MBS Util Plugin 26.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The lock count.
Example
// make a new mutex
Var m As New MutexMBS

// check lock count -> 0
Var l1 As Integer = m.LockCount

// we lock the mutex
m.Lock

// check lock count -> 1
Var l2 As Integer = m.LockCount

// we unlock the mutex
m.Unlock

// check lock count -> 0
Var l3 As Integer = m.LockCount

Break

For debugging to inspect whether mutex is locked.
(Read only property)

MutexMBS.Tag as Variant

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Process MBS Util Plugin 8.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
An object reference for your use.

Just for convenience.
This property was added so you can use this property for a reference so you won't need to subclass this class and add custom properties.
(Read and Write property)

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


The biggest plugin in space...