(Ref ref, Object val)
| 422 | } |
| 423 | |
| 424 | Object doSet(Ref ref, Object val){ |
| 425 | if(!info.running()) |
| 426 | throw retryex; |
| 427 | if(commutes.containsKey(ref)) |
| 428 | throw new IllegalStateException("Can't set after commute"); |
| 429 | if(!sets.contains(ref)) |
| 430 | { |
| 431 | sets.add(ref); |
| 432 | lock(ref); |
| 433 | } |
| 434 | vals.put(ref, val); |
| 435 | return val; |
| 436 | } |
| 437 | |
| 438 | void doEnsure(Ref ref){ |
| 439 | if(!info.running()) |