From af1871fba4fc253b5a31e4a0eed667fe79f534d7 Mon Sep 17 00:00:00 2001 From: rpj Date: Thu, 18 Sep 2003 02:31:39 +0000 Subject: Cleanup and fixes to thread priority management. Other minor changes. --- implement.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'implement.h') 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 -- cgit v1.2.3