LockingStatement Class
From The Oxygene Language Wiki
This is a Language topic
Feel free to add your notes to this topic below.
[Serializable] LockingStatement = public class(Statement)
This class represents a locking statement. Locking creates a new variable and assigns the value passed to that local, then it calls System.Threading.Monitor.Enter on the value, the body goes into a try/finally block, and the compiler will add a System.Threading.Monitor.Leave on the value inside the finally.
Namespace: Cirrus Statements
Members
| | |
|---|---|
| constructor(aValue: Value; aStatement: Statement; aVariableName: String; aVariableType: IType) | Initialize a locking statement |
| constructor | Initialize a locking statement without any statement or condition |
Properties
| | |
|---|---|
| Body: Statement | Body of this locking statement |
| Name: String | Optionally introduced local variable name |
| Type: IType | Type of the local introduced in this locking statement |
| Value: Value | Value to lock on |
See Also
- Cirrus
- External Links:
- Prism Aspects to Help with Monobjc Development (RemObjects Blogs)
- Statement Class
Area: Oxygene Language
Compiler version: Oxygene 5
Language Glossary — Keywords — Types — FAQ — How To