public class Lock
extends java.lang.Object
synchronize keyword, representing a lock to avoid concurrent access.
Here's a sample:
Lock lock1 = new Lock(); // usually a class' field
synchronized (lock1)
{
...
}
Only a Lock object can be used with synchronize. Using this will abort the tc.Deploy and
using other objects will cause a RuntimeException during code execution under the TCVM.| Constructor and Description |
|---|
Lock() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
finalize() |