Class: Lock

system.process. Lock


new Lock()

Invoked to lock a specific Lockable object.

Invoked to lock a specific Lockable object.

Example
var chain = new system.process.Chain() ;
var lock  = new system.process.Lock( chain ) ;

lock.run() ;

trace( chain.isLocked() ) ;

Extends

Members


<constant> finishIt :system.signals.Signal

This signal emit when the action is finished.

Type:
Inherited From:
Overrides:

<readonly> phase :string

Indicates the current phase.

Type:
  • string
Inherited From:
Overrides:
See:

<readonly> running :boolean

Indicates action is running.

Type:
  • boolean
Inherited From:
Overrides:

<constant> startIt :system.signals.Signal

This signal emit when the action is started.

Type:
Inherited From:
Overrides:

Methods


clone()

Creates a copy of the object.

Overrides:
Returns:

a shallow copy of this object.


isLocked()

Returns true if the object is locked.

Inherited From:
Overrides:
Implements:
Returns:

true if the object is locked.


lock()

Locks the object.

Inherited From:
Overrides:
Implements:

notifyFinished()

Notify when the process is finished.

Inherited From:
Overrides:

notifyStarted()

Notify when the process is started.

Inherited From:
Overrides:

run()

Run the process.

Overrides:

run()

Run the process.

Overrides:

unlock()

Unlocks the object.

Inherited From:
Overrides:
Implements: