Batch.AddThread
- Updated2025-07-21
- 1 minute(s) read
Batch.AddThread
Syntax
Batch.AddThread( TSEngineObj, threadObj, orderNumber)
Purpose
Adds a TestStand Thread to the list of threads associated with the batch.
Parameters
TSEngineObj As Object
[In] Specifies a reference to the TestStand Engine in which the thread resides.
threadObj As Object
[In] Specifies a reference to the TestStand thread to add to the batch. A thread can belong to only one batch at a time. Adding a thread to a batch removes the thread from its previous batch. When a thread terminates, TestStand removes the thread from the batch.
orderNumber As Long
[In] Specifies the order in which threads enter synchronized sections. Threads with a lower order number enter a synchronized section before threads with a higher order number.