Can a Thread Priority be changed during the thread execution?

  1. 2 weeks ago

    Ramon S

    Nov 28 Pre-Release Testers, Xojo Pro UPC, Europe (Barcelona, Spain)

    I've been searching it in the Language reference (Thread.Priority).
    In Notes there is a clear information about the meaning of the Priority value, but only in the Example says:

    This example lowers the priority of the thread prior to calling its Run method.

    Thread1.Priority = Thread.LowestPriority

    However this comment does not say explicitly that Priority cannot be changed during the thread execution.
    Thanks for any help.

    The Priority can be changed while a Thread is running.

    Play around with the example project to see the effect:
    Examples/Desktop/Threading/ThreadingExample

    I've added a note about this to the Thread.Priority page.

  2. Paul L

    Nov 28 Xojo Inc Answer http://docs.xojo.com

    The Priority can be changed while a Thread is running.

    Play around with the example project to see the effect:
    Examples/Desktop/Threading/ThreadingExample

    I've added a note about this to the Thread.Priority page.

  3. Ramon S

    Nov 28 Pre-Release Testers, Xojo Pro UPC, Europe (Barcelona, Spain)

    Thank you Paul.
    With the example it is completely clear!

or Sign Up to reply!