KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jgroups > util > NullReadWriteLock


1 package org.jgroups.util;
2
3 import EDU.oswego.cs.dl.util.concurrent.ReadWriteLock;
4 import EDU.oswego.cs.dl.util.concurrent.Sync;
5
6
7 /**
8  * @author Bela Ban
9  * @version $Id: NullReadWriteLock.java,v 1.1 2005/04/08 08:52:44 belaban Exp $
10  */

11 public class NullReadWriteLock implements ReadWriteLock {
12     Sync sync=new NullSync();
13
14     public Sync readLock() {
15         return sync;
16     }
17
18     public Sync writeLock() {
19         return sync;
20     }
21 }
22
Popular Tags