adapted tests to the new STM and tx datastructures

This commit is contained in:
jboner 2009-09-24 10:56:51 +02:00
parent 99ba8ac00a
commit 8899efd4ac
15 changed files with 770 additions and 862 deletions

View file

@ -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) {