Lines 590-616
Link Here
|
590 |
|
590 |
|
591 |
PThreadPrivateData *pd = static_cast<PThreadPrivateData *> (_prvData); |
591 |
PThreadPrivateData *pd = static_cast<PThreadPrivateData *> (_prvData); |
592 |
|
592 |
|
593 |
size_t defaultStackSize; |
593 |
size_t defaultStackSize = 0; |
594 |
pthread_attr_getstacksize( &thread_attr, &defaultStackSize); |
594 |
pthread_attr_getstacksize( &thread_attr, &defaultStackSize); |
595 |
if(status != 0) { |
|
|
596 |
return status; |
597 |
} |
598 |
|
595 |
|
599 |
if(defaultStackSize < pd->stackSize) { |
596 |
if(defaultStackSize < pd->stackSize) { |
600 |
|
597 |
|
601 |
pthread_attr_setstacksize( &thread_attr, pd->stackSize); |
598 |
pthread_attr_setstacksize( &thread_attr, pd->stackSize); |
602 |
if(status != 0) { |
|
|
603 |
return status; |
604 |
} |
605 |
} |
599 |
} |
606 |
|
600 |
|
607 |
//------------------------------------------------------------------------- |
601 |
//------------------------------------------------------------------------- |
608 |
// Now get what we actually have... |
602 |
// Now get what we actually have... |
609 |
// |
603 |
// |
610 |
pthread_attr_getstacksize( &thread_attr, &defaultStackSize); |
604 |
pthread_attr_getstacksize( &thread_attr, &defaultStackSize); |
611 |
if(status != 0) { |
|
|
612 |
return status; |
613 |
} |
614 |
|
605 |
|
615 |
pd->stackSize = defaultStackSize; |
606 |
pd->stackSize = defaultStackSize; |
616 |
|
607 |
|