summaryrefslogtreecommitdiff
path: root/ptw32_new.c
diff options
context:
space:
mode:
Diffstat (limited to 'ptw32_new.c')
-rw-r--r--ptw32_new.c20
1 files changed, 11 insertions, 9 deletions
diff --git a/ptw32_new.c b/ptw32_new.c
index 3e346d1..dc1d8e9 100644
--- a/ptw32_new.c
+++ b/ptw32_new.c
@@ -55,15 +55,17 @@ ptw32_new (void)
if (t != NULL)
{
- t->detachState = PTHREAD_CREATE_JOINABLE;
- t->cancelState = PTHREAD_CANCEL_ENABLE;
- t->cancelType = PTHREAD_CANCEL_DEFERRED;
- t->cancelLock = PTHREAD_MUTEX_INITIALIZER;
- t->cancelEvent = CreateEvent (
- 0,
- (int) PTW32_TRUE, /* manualReset */
- (int) PTW32_FALSE, /* setSignaled */
- NULL);
+ t->sched_priority = THREAD_PRIORITY_NORMAL;
+ t->detachState = PTHREAD_CREATE_JOINABLE;
+ t->cancelState = PTHREAD_CANCEL_ENABLE;
+ t->cancelType = PTHREAD_CANCEL_DEFERRED;
+ t->cancelLock = PTHREAD_MUTEX_INITIALIZER;
+ t->threadLock = PTHREAD_MUTEX_INITIALIZER;
+ t->cancelEvent = CreateEvent (
+ 0,
+ (int) PTW32_TRUE, /* manualReset */
+ (int) PTW32_FALSE, /* setSignaled */
+ NULL);
if (t->cancelEvent == NULL)
{