Lifetime Attribute of Synchronization Objects

TestStand 2019 Help

Edition Date: May 2019

Part Number: 370052AA-01

»View Product Info
Download Help (Windows Only)

When you create a Synchronization object, you must specify a lifetime for the reference you create. The object exists for at least as long as the reference exists but can exist longer when another reference to the object specifies a longer lifetime.

You can set the object reference lifetime to Same as Sequence, Same as Thread, Same as Execution, or Use Object Reference. When you refer to the object by name only, you typically set the reference lifetime to Same as Sequence, Same as Thread, or Same as Execution to guarantee that the object lives as long as the sequence, thread, or execution in which you create the reference.

When you want to explicitly control the lifetime of the object reference or when you want to use an object reference variable to refer to the object instead of using the object name, select Use Object Reference as the lifetime on the edit tab of the Step Settings pane for each step type. You can also use the object reference from other threads without performing a Create operation in each thread. When the last object reference to a Synchronization object releases, TestStand disposes of the object.

Some synchronization objects use Lock or Acquire operations, for which you can also specify a lifetime to determine the duration of the operation.


Not Helpful