01: /*
02: * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
03: */
04: package com.tcspring;
05:
06: import org.springframework.webflow.conversation.impl.ConversationLock;
07:
08: import com.tc.object.bytecode.Manager;
09: import com.tc.object.bytecode.ManagerUtil;
10:
11: /**
12: * Clustered conversation lock
13: *
14: * @author Eugene Kuleshov
15: */
16: class DSOConversationLock implements ConversationLock {
17:
18: public void lock() {
19: ManagerUtil.monitorEnter(this , Manager.LOCK_TYPE_WRITE);
20: }
21:
22: public void unlock() {
23: ManagerUtil.monitorExit(this);
24: }
25: }
|