acquireSharedAccess

abstract fun acquireSharedAccess(): Boolean

Attempt to acquire shared access to the map. Unlike other components, with shared access, MapUpdate can both read the map content and CAN modify files in the map directory, but in such a way that other readers are not affected (the modified content is available to other readers only when MapUpdate commits the changes - after acquiring exclusive access).

This function can be called multiple times, even if shared access was granted. To release shared access afterwards, an equal number of calls to releaseSharedAccess is needed.

To be called from JNI only!

Return

SHARED_ACCESS_GRANTED upon success or SHARED_ACCESS_NOT_GRANTED otherwise.