|
NAMEEmilua - Lua execution engine DESCRIPTIONlocal mutex = require('mutex')
local function ping_sender()
A mutex. FUNCTIONSnew() → mutexConstructor. lock(self)Locks the mutex. Note This suspending function does not act as an cancellation point. Note This mutex applies dispatch semantics. That means no context
switch to
try_lock(self) → booleanTries to lock the mutex. Returns whether lock acquisition was successful. Caution It’s an error to call try_lock() if
current fiber already owns the
Note The current fiber is never suspended. unlock(self)Unlocks the mutex.
|