JUCE offers Interprocess Communication, which is very nice, but I would like to have some kind of ScopedLock object for IPC.
Would it be difficult to create some kind of class that works like this:
ScopedLock(const String &name);
This would, if there is none, create some kind of synchronisation object referenced by “name”. Then it would just lock it like a CriticalSection, and if other processes would try to access that lock at the time it still exists in process1, they would have to wait.
I have never used IPC, but it is very important for my application to have some kind of lock like this.
Would this be hard to implement?