You are currently viewing a snapshot of www.mozilla.org taken on April 21, 2008. Most of this content is highly out of date (some pages haven't been updated since the project began in 1998) and exists for historical purposes only. If there are any pages on this archive site that you think should be added back to www.mozilla.org, please file a bug.



All Packages  This Package  Class Hierarchy  Class Search  Index

Class calypso.util.SelfTestRWLock

java.lang.Object
   |
   +----calypso.util.SelfTestRWLock

class  SelfTestRWLock
     extends java.lang.Object
{
          // Fields 7
     static int gThreadCounter;
     static Object gThreadCounterLock;
     static final int kInvariantRead;
     static final int kRead;
     static String[] kStateToString;
     static final int kWrite;
     static final boolean noisy;

          // Constructors 1
     public SelfTestRWLock();

          // Methods 18
     static void Enter(RWLock, int) throws InterruptedException;
     static void Exit(RWLock, int) throws InterruptedException;
     static void ThreadEnter() throws InterruptedException;
     static void ThreadExit() throws InterruptedException;
     static void ThreadWait() throws InterruptedException;
     static void outOfOrderExit0(RWLock) throws InterruptedException, SelfTestException;
     static void outOfOrderExit1(RWLock) throws InterruptedException, SelfTestException;
     static void outOfOrderExit2(RWLock) throws InterruptedException, SelfTestException;
     static void outOfOrderExit3(RWLock) throws InterruptedException, SelfTestException;
     static void outOfOrderExit4(RWLock) throws InterruptedException, SelfTestException;
     static void outOfOrderExit5(RWLock) throws InterruptedException, SelfTestException;
     public static void run() throws SelfTestException;
     static void simpleInvariantReadTest(RWLock) throws InterruptedException;
     static void simpleInvariantReadWriteTest(RWLock) throws InterruptedException;
     static void simpleReadTest(RWLock) throws InterruptedException;
     static void simpleReadWriteTest(RWLock) throws InterruptedException;
     static void stressTestContention(RWLock) throws SelfTestException, InterruptedException;
     static void verifyBlocking(RWLock, int, int) throws SelfTestException, InterruptedException;

          // Inner Classes 1
     static class RWTestHelper
}



Fields


kRead

   static final int kRead


kWrite

   static final int kWrite


kInvariantRead

   static final int kInvariantRead


kStateToString

   static String[] kStateToString


gThreadCounterLock

   static Object gThreadCounterLock


gThreadCounter

   static int gThreadCounter


noisy

   static final boolean noisy



Constructors


SelfTestRWLock

   public SelfTestRWLock() 

Default constructor




Methods


simpleReadTest

   static void simpleReadTest(RWLock aLock)  throws InterruptedException


simpleReadWriteTest

   static void simpleReadWriteTest(RWLock aLock)  throws InterruptedException


simpleInvariantReadTest

   static void simpleInvariantReadTest(RWLock aLock)  throws InterruptedException


simpleInvariantReadWriteTest

   static void simpleInvariantReadWriteTest(RWLock aLock)  throws InterruptedException


outOfOrderExit0

   static void outOfOrderExit0(RWLock aLock)  throws InterruptedException, SelfTestException


outOfOrderExit1

   static void outOfOrderExit1(RWLock aLock)  throws InterruptedException, SelfTestException


outOfOrderExit2

   static void outOfOrderExit2(RWLock aLock)  throws InterruptedException, SelfTestException


outOfOrderExit3

   static void outOfOrderExit3(RWLock aLock)  throws InterruptedException, SelfTestException


outOfOrderExit4

   static void outOfOrderExit4(RWLock aLock)  throws InterruptedException, SelfTestException


outOfOrderExit5

   static void outOfOrderExit5(RWLock aLock)  throws InterruptedException, SelfTestException


run

   public static void run()  throws SelfTestException


verifyBlocking

   static void verifyBlocking(RWLock aLock, 
                              int aMe, 
                              int aHelper)  throws SelfTestException, InterruptedException


stressTestContention

   static void stressTestContention(RWLock aLock)  throws SelfTestException, InterruptedException


ThreadEnter

   static void ThreadEnter()  throws InterruptedException


ThreadExit

   static void ThreadExit()  throws InterruptedException


ThreadWait

   static void ThreadWait()  throws InterruptedException


Enter

   static void Enter(RWLock aLock, 
                     int aHow)  throws InterruptedException


Exit

   static void Exit(RWLock aLock, 
                    int aHow)  throws InterruptedException


All Packages  This Package  Class Hierarchy  Class Search  Index
Freshly brewed Java API Documentation automatically generated with polardoc Version 1.0.4