Thread.priority

int priority() @property

Gets the scheduling priority for the associated thread.

Note

Getting the priority of a thread that already terminated

might return the default priority.

Returns

The scheduling priority of this thread.
void priority( int val ) @property

Sets the scheduling priority for the associated thread.

Note

Setting the priority of a thread that already terminated

might have no effect.

Parameters

valThe new scheduling priority of this thread.