diff options
author | rpj <rpj> | 2003-09-18 02:31:39 +0000 |
---|---|---|
committer | rpj <rpj> | 2003-09-18 02:31:39 +0000 |
commit | af1871fba4fc253b5a31e4a0eed667fe79f534d7 (patch) | |
tree | 1242599d7334ae50c5c05f9b23b52876e4287924 /implement.h | |
parent | fac679912b15dd89cafdb09bf873d7eacc80a05e (diff) |
Cleanup and fixes to thread priority management. Other minor changes.snap-2003-09-18
Diffstat (limited to 'implement.h')
-rw-r--r-- | implement.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/implement.h b/implement.h index ca27681..34eb826 100644 --- a/implement.h +++ b/implement.h @@ -122,6 +122,8 @@ struct pthread_t_ { void *parms; int ptErrno; int detachState; + pthread_mutex_t threadLock; /* Used for serialised access to public thread state */ + int sched_priority; /* As set, not as currently is */ pthread_mutex_t cancelLock; /* Used for async-cancel safety */ int cancelState; int cancelType; @@ -498,6 +500,10 @@ void ptw32_threadReusePush (pthread_t thread); int ptw32_getprocessors (int * count); +int ptw32_setthreadpriority (pthread_t thread, + int policy, + int priority); + #if ! defined (__MINGW32__) || defined (__MSVCRT__) unsigned __stdcall #else |