LassoScript Utility
Basics Browse Detail

[Thread_GetPriority]

Tag Link [Thread_GetPriority] Category Threads
Type Substitution Source Available Yes
Support Preferred Version 8.5
Change New Data Source Any
Output Type Integer Security None
Implementation Internal Sets Lasso 8.5

Description

[Thread_GetPriority] requires the ID of a thread as a parameter and returns the integer priority for the thread. The priority of threads can be modified using [Thread_SetPriority].

The priority for normal threads will be the same as the value returned by [Thread_Priority_default]. The value will always be between the values returned by [Thread_Priority_Low] and [Thread_Priority_High].

Each thread in Lasso represents either a browser initiated page load or an asynchronous tag or compound expression. The [Thread_List] will always include one ID which represents the current page load (also returned by [Thread_GetCurrentID]) and usually will also have IDs for the background processes in Lasso which manage the email queue, event scheduler, and session manager.

Note that since threads can be created and destroyed very quickly there is no guarantee that thread IDs listed by [Thread_List] are still running even by the time the tag has finished processing. [Thread_Exists] can be used to test whether a thread ID is still running.

Syntax

[Thread_GetPriority: Thread_GetCurrentID]

[Iterate: Thread_List, (Var: 'id')]
[Thread_GetPriority: $id]
[/Iterate]

Parameters

Required Parameters
Thread ID The ID of the thread to be inspected.

Examples

See the Lasso 8 Language Guide for examples of how to use this tag.