Package ptolemy.kernel.util.test
Class TestWorkspace3
- java.lang.Object
-
- ptolemy.kernel.util.test.TestWorkspaceBase
-
- ptolemy.kernel.util.test.TestWorkspace3
-
public class TestWorkspace3 extends TestWorkspaceBase
Test the following scenario: thread T1 gets read access; thread T2 gets read access; T1 waits for write access; T2 releases read access; T1 wakes up and gets write access.- Since:
- Ptolemy II 3.0
- Version:
- $Id$
- Author:
- Xiaojun Liu
- Pt.AcceptedRating:
- Red (cxh)
- Pt.ProposedRating:
- Green (eal)
-
-
Field Summary
-
Fields inherited from class ptolemy.kernel.util.test.TestWorkspaceBase
_accessThreads, _record, _testTime
-
-
Constructor Summary
Constructors Constructor Description TestWorkspace3()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
initializeTest()
Create threads that access a workspace in various ways.-
Methods inherited from class ptolemy.kernel.util.test.TestWorkspaceBase
profile, runTest
-
-
-
-
Method Detail
-
initializeTest
public void initializeTest()
Description copied from class:TestWorkspaceBase
Create threads that access a workspace in various ways. List the threads in _accessThreads.- Specified by:
initializeTest
in classTestWorkspaceBase
-
-