Artifacts Associated With Ticket 762398
Ticket change [0dfc040232] (rid 94530) by nobody on 2003-06-28 16:00:44:
- assignee initialized to: "vasiljevic"
- cmimetype initialized to: "text/plain"
- 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
- foundin initialized to: "None"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "nobody"
- subsystem initialized to: "80. Thread Package"
- title initialized to: "support thread priority (Windows only)"
- type initialized to: "Patch"
Add attachment "threadCmd.zip" [dc562f9916] (rid 114461) by nobody on 2003-06-28 23:00:44.
Ticket change [6d330ae5fe] (rid 128650) by nobody on 2003-06-28 23:00:44:
- icomment:
File Added - 54370: threadCmd.zip
- login: "nobody"
- mimetype: "text/plain"
- username: "nobody"
- icomment:
Ticket change [1982055247] (rid 122817) by vasiljevic on 2003-06-28 23:36:35:
- 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?
- login: "vasiljevic"
- mimetype: "text/plain"
- username: "vasiljevic"
- icomment:
Ticket change [571a470525] (rid 94430) by dkf on 2009-06-18 15:36:05:
- icomment:
The other possibility is to say that all Unix threads are priority 0, and that that's both minimum and maximum.
- login: "dkf"
- mimetype: "text/plain"
- username: "dkf"
- icomment: