Lasso Soft Inc. > Home

[Thread_GetPriority]

[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
  • Parameters
[Thread_GetPriority: Thread_GetCurrentID]

[Iterate: Thread_List, (Var: 'id')]
  [Thread_GetPriority: $id]
[/Iterate]
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.

Tag Link [Thread_GetPriority] Category Thread
Type Substitution Data Source Any
Support Preferred Version 8.5
Output Type Integer Security None
Implementation Internal Sets Lasso 8.5

Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.

LassoSoft Inc. > Home

 

 

©LassoSoft Inc 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft