Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
9.3
9.4
9.5
10.0
10.1
10.2
10.3
10.4
10.5
10.6
Statistic
FMM
Blog
Mutex.Lock
Locks the mutex.
| Component | Version | macOS | Windows | Linux | Server | FileMaker iOS SDK |
| Mutex | 10.2 | Yes | Yes | Yes | Yes | Yes |
MBS( "Mutex.Lock"; Mutex ) More
Parameters
| Parameter | Description | Example |
|---|---|---|
| Mutex | The reference number of the mutex. | $mutex |
Result
Returns OK or error.
Description
Locks the mutex.Only one application can lock the mutex.
Please call Mutex.Unlock later to unlock the mutex.
To avoid you looking up the FileMaker app, we limit locking to one minute. After that you get a timeout error.
Examples
Lock a mutex:
MBS( "Mutex.Lock"; $Mutex )
Lock and unlock:
# lock it
Set Variable [ $r ; Value: MBS( "Mutex.Lock"; $Mutex ) ]
# do something
#
# finally unlock
Set Variable [ $r ; Value: MBS( "Mutex.Unlock"; $Mutex ) ]
See also
Created 5th April 2020, last changed 5th April 2020
Feedback: Report problem or ask question.
Links
MBS Xojo Chart Plugins