Kaya 0.4.4 reference for Threads::lock

List of functions and data types in Threads

Void lock(Mutex m)

Arguments

Usage

Lock a mutex. All other threads which attempt to lock this mutex will have to wait until it is unlocked. This prevents simultaneous access to shared resources.

Related

kaya@kayalang.org | Last modified 29 November 2011 | Supported by Durham CompSoc | Powered by Kaya