LockingStatement Class

From The Oxygene Language Wiki

Jump to:navigation, search

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

Method
Description
constructor(aValue: Value; aStatement: Statement; aVariableName: String; aVariableType: IType)Initialize a locking statement
constructorInitialize a locking statement without any statement or condition


Properties

Property
Description
Body: StatementBody of this locking statement
Name: StringOptionally introduced local variable name
Type: ITypeType of the local introduced in this locking statement
Value: ValueValue to lock on


See Also


Oxygene-48.png

Area: Oxygene Language
Compiler version: Oxygene 5

Language GlossaryKeywordsTypesFAQHow To

Navigation
Areas
More
Toolbox