Concurrency
CLMonitor singleton to workaround the “Monitor named is already in use” exception
If you attempt to init another instance of CLMonitor with the same name it crashes with: Since I wanted to use the same monitor from different tasks I needed to turn it into a singleton and came up with this: This allows this kind of thing to work without crashing: Read more…