Mutex: Difference between revisions

6 bytes removed ,  5 months ago
m
→‎{{header|Wren}}: Changed to Wren S/H
imported>Katsumi
No edit summary
m (→‎{{header|Wren}}: Changed to Wren S/H)
 
Line 1,395:
However, to avoid excessive latency, a VM whose thread were continuing would need to signal to the host that it no longer needed the resource so the lock could be released thereby making it available to the other VM(s). Typically, a shared resource might need to be represented something like this in a Wren script:
 
<syntaxhighlight lang="ecmascriptwren">foreign class Resource {
// obtain a pointer to the resource when available
construct new() {}
9,483

edits