|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.rice.cs.util.ReaderWriterLockTest.PrintCommand
public class ReaderWriterLockTest.PrintCommand
Command pattern class to print to a buffer.
| Field Summary | |
|---|---|
(package private) StringBuffer |
_buf
Buffer to print to |
(package private) String |
_msg
Message to print |
(package private) int |
_numIterations
Number of times to print |
(package private) int |
_waitMillis
Number of milliseconds to wait between iterations |
| Constructor Summary | |
|---|---|
ReaderWriterLockTest.PrintCommand(String msg,
StringBuffer buf)
Creates a new command to print to a buffer during a read or write. |
|
| Method Summary | |
|---|---|
void |
print()
Prints the message to the buffer. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
volatile int _numIterations
volatile int _waitMillis
final StringBuffer _buf
final String _msg
| Constructor Detail |
|---|
public ReaderWriterLockTest.PrintCommand(String msg,
StringBuffer buf)
| Method Detail |
|---|
public void print()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||