public class BlockLocks extends Object
Constructor and Description |
---|
BlockLocks(long numBits) |
Modifier and Type | Method and Description |
---|---|
void |
clear(int index) |
int |
nextClearBit(int index)
Find the next clear bit in the bit set.
|
boolean |
set(int index)
Thread safe set operation that will set the bit if and only if the bit was
not previously set.
|
public int nextClearBit(int index)
index
- indexpublic boolean set(int index)
index
- the index position to set.public void clear(int index)
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.