summaryrefslogtreecommitdiff
path: root/implement.h
diff options
context:
space:
mode:
authorrpj <rpj>2003-09-18 02:31:39 +0000
committerrpj <rpj>2003-09-18 02:31:39 +0000
commitaf1871fba4fc253b5a31e4a0eed667fe79f534d7 (patch)
tree1242599d7334ae50c5c05f9b23b52876e4287924 /implement.h
parentfac679912b15dd89cafdb09bf873d7eacc80a05e (diff)
Cleanup and fixes to thread priority management. Other minor changes.snap-2003-09-18
Diffstat (limited to 'implement.h')
-rw-r--r--implement.h6
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