adapted tests to the new STM and tx datastructures
This commit is contained in:
parent
99ba8ac00a
commit
8899efd4ac
15 changed files with 770 additions and 862 deletions
|
|
@ -11,12 +11,15 @@ public class InMemStateful {
|
|||
private TransactionalMap<String, String> mapState;
|
||||
private TransactionalVector<String> vectorState;
|
||||
private TransactionalRef<String> refState;
|
||||
|
||||
@inittransactionalstate
|
||||
private boolean isInitialized = false;
|
||||
|
||||
public void init() {
|
||||
mapState = TransactionalState.newMap();
|
||||
vectorState = TransactionalState.newVector();
|
||||
refState = TransactionalState.newRef();
|
||||
if (!isInitialized) {
|
||||
mapState = TransactionalState.newMap();
|
||||
vectorState = TransactionalState.newVector();
|
||||
refState = TransactionalState.newRef();
|
||||
isInitialized = true;
|
||||
}
|
||||
}
|
||||
|
||||
public String getMapState(String key) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue