tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

pr_setthreadpriority.rst (766B)


      1 PR_SetThreadPriority
      2 ====================
      3 
      4 Sets the priority of a specified thread.
      5 
      6 
      7 Syntax
      8 ------
      9 
     10 .. code::
     11 
     12   #include <prthread.h>
     13 
     14   void PR_SetThreadPriority(
     15      PRThread *thread,
     16      PRThreadPriority priority);
     17 
     18 
     19 Parameters
     20 ~~~~~~~~~~
     21 
     22 :ref:`PR_SetThreadPriority` has the following parameters:
     23 
     24 ``thread``
     25   A valid identifier for the thread whose priority you want to set.
     26 ``priority``
     27   The priority you want to set.
     28 
     29 
     30 Description
     31 -----------
     32 
     33 Modifying the priority of a thread other than the calling thread is
     34 risky. It is difficult to ensure that the state of the target thread
     35 permits a priority adjustment without ill effects. It is preferable for
     36 a thread to specify itself in the thread parameter when it calls
     37 :ref:`PR_SetThreadPriority`.