Xojo.Threading.CriticalSection.Leave

From Xojo Documentation

Revision as of 18:30, 29 August 2018 by PLefebvre (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Method

Xojo.Threading.CriticalSection.Leave()

Supported for all project types and targets.

Call Leave when you are finished using the protected resource and you want to give it back to the CriticalSection.

Notes

Every time you call Enter or TryEnter and succeed, you must call Leave. This includes calling it recursively. Otherwise the resource will be protected indefinitely.