Mutex.Unlock
------------

Unlocks the mutex.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Mutex](component_Mutex.md) | [10.2](newinversion102.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "Mutex.Unlock"; Mutex ) 

**MBS**( **"Mutex.Unlock";** /\* Unlocks the mutex. \*/  
**$Mutex**) /\* The reference number of the mutex. \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Mutex | The reference number of the mutex. | $mutex |

### Result

Returns OK or error.

### Description

Unlocks the mutex.  
### Examples

Lock and unlock:

 # lock it   
Set Variable \[ $r ; Value: MBS ( "[Mutex.Lock](MutexLock.md)"; $Mutex ) \]   
\# do something   
\#   
\# finally unlock   
Set Variable \[ $r ; Value: MBS ( "Mutex.Unlock"; $Mutex ) \]  
### See also

- [Mutex.Create](MutexCreate.md)
- [Mutex.Lock](MutexLock.md)
- [Mutex.TryLock](MutexTryLock.md)

### Blog Entries

- [News about the MBS FileMaker Plugin 10.2](https://www.mbsplugins.de/archive/2020-05-19/News_about_the_MBS_FileMaker_P/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 5th April 2020 , last changed 5th April 2020

  
[Mutex.TryLock](MutexTryLock.md) - [NSEventFilter.DisableEvents](NSEventFilterDisableEvents.md)

[HTML Version](MutexUnlock.shtml)