Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 0dfc0402328a76e37df7ae5d69b0f10eb0aabb43
Ticket: 762398ffffffffffffffffffffffffffffffffff
support thread priority (Windows only)
User & Date: nobody on 2003-06-28 16:00:44
Changes

  1. assignee changed to: "vasiljevic"
  2. cmimetype changed to: "text/plain"
  3. comment changed 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 changed to: "None"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "nobody"
  9. subsystem changed to: "80. Thread Package"
  10. title changed to: "support thread priority (Windows only)"
  11. type changed to: "Patch"