Skip to content
Tcl Source Code History Of Ticket 762398
Login

History Of Ticket 762398

Artifacts Associated With Ticket 762398

  1. Ticket change [0dfc040232] (rid 94530) by nobody on 2003-06-28 16:00:44:

    1. assignee initialized to: "vasiljevic"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      I patched the threadCmd.c (of thread 2.5.2 package) so 
      you can change the thread priority in windows 
      environments.
      
      Everything that is modified is enclosed in an #ifdef 
      _USE_THREADPRIO/endif compiler statement.
      
      I don't know wether unix supports thread priorities.
      Thread priorities are 
      "normal", "above", "below", "high", "low", "idle", "unknown" 
      
      where unknown indicates an error.
      
      ***
      thread::configure ThreadId -priority 
      
      returns one of the above names. If none of them does 
      fit (should not happen) the int value is returned.
      
      If the thread doesn't have priority an empty string is 
      returned.
      
      ***
      thread::configure ThreadId -priority NewThreadPriority
      
      changes the thread priority
      Note: at the moment no error is returned on a failure
      
      ***
      maybe someone decides to integrate this in standard 
      thread library.
      
      Have fun with it!
      
      Harald
      
      
    4. foundin initialized to: "None"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "nobody"
    9. subsystem initialized to: "80. Thread Package"
    10. title initialized to: "support thread priority (Windows only)"
    11. type initialized to: "Patch"
  2. Add attachment "threadCmd.zip" [dc562f9916] (rid 114461) by nobody on 2003-06-28 23:00:44.

  3. Ticket change [6d330ae5fe] (rid 128650) by nobody on 2003-06-28 23:00:44:

    1. icomment:
      
      
      File Added - 54370: threadCmd.zip
      
      
      
    2. login: "nobody"
    3. mimetype: "text/plain"
    4. username: "nobody"
  4. Ticket change [1982055247] (rid 122817) by vasiljevic on 2003-06-28 23:36:35:

    1. icomment:
      Logged In: YES 
      user_id=95086
      
      This is nice. Thanks for the input. I will review this 
      and put it in the standard thread extension. 
      No, Unix does not have an equivalent of this so I assume 
      that we'd always return empty string on priority inquiry. 
      The only question is: what to do for priority setting?  
      Throw error? Eat every string silently?  
      
      
    2. login: "vasiljevic"
    3. mimetype: "text/plain"
    4. username: "vasiljevic"
  5. Ticket change [571a470525] (rid 94430) by dkf on 2009-06-18 15:36:05:

    1. icomment:
      The other possibility is to say that all Unix threads are priority 0, and that that's both minimum and maximum.
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"