GNOME Bugzilla – Bug 795545
Support explicit "unlock" corresponding to a "lock" without statements
Last modified: 2018-04-27 12:55:45 UTC
In addition to the current resource control syntax lock ($lockable) { ... } it should be allowed to unlock the previously locked lockable at any desired place while still using vala's transparent support for mutexes. lock ($lockable); ... unlock ($lockable);
Created attachment 371382 [details] [review] parser: Add support for explicit "unlock" syntax By providing more control over the internal support for Mutex creation and usage, this allows a more complex resource control while having an explicit way to unlock a previously locked lockable. lock (foo); ... unlock (foo);
Attachment 371382 [details] pushed as 8898e12 - parser: Add support for explicit "unlock" syntax