mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
Support read/write locking.
This commit is contained in:
@@ -26,11 +26,15 @@ import java.util.Map;
|
||||
*/
|
||||
interface SharedSegment<K, V> {
|
||||
|
||||
void lock();
|
||||
void readLock();
|
||||
|
||||
void writeLock();
|
||||
|
||||
Map.Entry<K, V> getEntry(long pos);
|
||||
|
||||
void unlock();
|
||||
void readUnlock();
|
||||
|
||||
void writeUnlock();
|
||||
|
||||
NativeBytes entry(long pos);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user