mirror of
https://github.com/Telecominfraproject/wlan-cloud-lib-poco.git
synced 2025-11-01 19:17:59 +00:00
backport from trunk:
[1981865] Cygwin Makefile lacks ThreadTarget.cpp [1954327] CYGWIN's pthread does not define PTHREAD_STACK_MIN
This commit is contained in:
@@ -26,7 +26,7 @@ objects = ArchiveStrategy ASCIIEncoding AsyncChannel Base64Decoder Base64Encoder
|
|||||||
StreamTokenizer String StringTokenizer SynchronizedObject \
|
StreamTokenizer String StringTokenizer SynchronizedObject \
|
||||||
Task TaskManager TaskNotification TeeStream Hash HashStatistic \
|
Task TaskManager TaskNotification TeeStream Hash HashStatistic \
|
||||||
TemporaryFile TextConverter TextEncoding TextIterator Thread ThreadLocal \
|
TemporaryFile TextConverter TextEncoding TextIterator Thread ThreadLocal \
|
||||||
ThreadPool ActiveDispatcher Timer Timespan Timestamp Timezone Token URI \
|
ThreadPool ThreadTarget ActiveDispatcher Timer Timespan Timestamp Timezone Token URI \
|
||||||
FileStreamFactory URIStreamFactory URIStreamOpener UTF16Encoding Windows1252Encoding \
|
FileStreamFactory URIStreamFactory URIStreamOpener UTF16Encoding Windows1252Encoding \
|
||||||
UTF8Encoding UnicodeConverter UUID UUIDGenerator Void Format \
|
UTF8Encoding UnicodeConverter UUID UUIDGenerator Void Format \
|
||||||
Pipe PipeImpl PipeStream DynamicAny DynamicAnyHolder SharedMemory \
|
Pipe PipeImpl PipeStream DynamicAny DynamicAnyHolder SharedMemory \
|
||||||
|
|||||||
@@ -151,10 +151,10 @@ int ThreadImpl::getMaxOSPriorityImpl()
|
|||||||
|
|
||||||
void ThreadImpl::setStackSizeImpl(int size)
|
void ThreadImpl::setStackSizeImpl(int size)
|
||||||
{
|
{
|
||||||
#ifdef POCO_OS_CYGWIN
|
#if (POCO_OS == POCO_OS_CYGWIN)
|
||||||
_pData->stackSize = 0;
|
_pData->stackSize = 0;
|
||||||
#else
|
#else
|
||||||
if (size !=0 && size < PTHREAD_STACK_MIN)
|
if (size != 0 && size < PTHREAD_STACK_MIN)
|
||||||
size = PTHREAD_STACK_MIN;
|
size = PTHREAD_STACK_MIN;
|
||||||
|
|
||||||
_pData->stackSize = size;
|
_pData->stackSize = size;
|
||||||
|
|||||||
@@ -281,7 +281,7 @@ void ThreadTest::testThreadStackSize()
|
|||||||
|
|
||||||
stackSize = 1;
|
stackSize = 1;
|
||||||
thread.setStackSize(stackSize);
|
thread.setStackSize(stackSize);
|
||||||
#if defined(POCO_OS_FAMILY_UNIX) && !defined(POCO_OS_CYGWIN)
|
#if !(POCO_OS == POCO_OS_CYGWIN)
|
||||||
assert (PTHREAD_STACK_MIN == thread.getStackSize());
|
assert (PTHREAD_STACK_MIN == thread.getStackSize());
|
||||||
#else
|
#else
|
||||||
assert (stackSize == thread.getStackSize());
|
assert (stackSize == thread.getStackSize());
|
||||||
|
|||||||
Reference in New Issue
Block a user