added memoryview wrapper for sharedarea and locking api