Emojicode Documentation 1.0 beta 2

Class πŸ”

Mutex, simple semaphore for thread synchronisation. A mutex is a simple semaphore that can be used to coordinate access to shared data from multiple concurrent threads.

Initializers

πŸ†•

 πŸ†• 

Creates an new mutex.

Methods

πŸ”’β—οΈ

❗️ πŸ”’ 

Attempts to lock the mutex and waits until it becomes available if it is already locked.

πŸ”“β—οΈ

❗️ πŸ”“ 

Unlocks the mutex.

πŸ”β—οΈ

❗️ πŸ” ➑️ πŸ‘Œ

Attempts to lock the mutex and returns immediately. Returns πŸ‘ if the mutex could be locked.

deinit❗️

❗️ deinit