01: package org.jgroups.util;
02:
03: import EDU.oswego.cs.dl.util.concurrent.ReadWriteLock;
04: import EDU.oswego.cs.dl.util.concurrent.Sync;
05:
06: /**
07: * @author Bela Ban
08: * @version $Id: NullReadWriteLock.java,v 1.1 2005/04/08 08:52:44 belaban Exp $
09: */
10: public class NullReadWriteLock implements ReadWriteLock {
11: Sync sync = new NullSync();
12:
13: public Sync readLock() {
14: return sync;
15: }
16:
17: public Sync writeLock() {
18: return sync;
19: }
20: }
|