public final class Monitor extends Object
(c) copyright 2002-2005 Delft University of Technology , the Netherlands.
See for project information www.simulation.tudelft.nl/language
License of use: Lesser
General Public License (LGPL) , no warranty
Modifier and Type | Method and Description |
---|---|
static void |
lock(Object object)
locks an object for the current thread
|
static void |
lock(Object object,
Thread requestor)
locks an object for the given requestor.
|
static void |
unlock(Object object)
unlocks an object locked by the current Thread
|
static void |
unlock(Object object,
Thread owner)
unlocks an object locked by owner.
|
public static void lock(Object object)
object
- the object to lockpublic static void lock(Object object, Thread requestor)
object
- the object to lock.requestor
- the requesting thread.public static void unlock(Object object)
object
- the object to unlockCopyright © 2002-2012 Delft University of Technology, the Netherlands. All Rights Reserved.