I can't find any locking mechanism in Wolfram documentation for independent concurrent processes, which is needed for Cloud-based synchronization. The only ones I can find are for parallel processing in a system with cooperating kernels.
I have CloudObjects which need to be modifiable from different devices. This means managing access among independently running Cloud processes. These objects are designed so that read-only access is permissible from anywhere at anytime, but only one process can have write access at a time.
I would like to maintain a Cloud-based global variable/file to control write access, but neither WithLock
nor CriticalSection
will allow a CloudObject for locking, so I don't see how to create an atomic read-test-set operation on my control variable.
Is there an alternate mechanism available, or did I miss something in my attempts to use a CloudObject with either WithLock
or CriticalSection
?