#155 CYGWIN's pthread does not define PTHREAD_STACK_MIN

Platform_Specific
closed
nobody
5
2012-09-14
2008-04-29
Anonymous
No

The pthread library of CYGWIN (1.5.25-11) does not define PTHREAD_STACK_MIN.

CYGWIN uses NewLib as the base c-library. It defines a max stack size of 2MB (default) in the file located in newlib/libc/sys/linux/linuxthreads/internals.h. Unfortunately, the stack size cannot be set to a different size and therefore it makes not much sense making usage of PTHREAD_STACK_MIN.

Regards,

Richard

Discussion

  • Alex Fabijanic
    Alex Fabijanic
    2008-04-29

    Logged In: YES
    user_id=1001095
    Originator: NO

    Fixed in trunk, revision 527

    Thank you.

     
  • Alex Fabijanic
    Alex Fabijanic
    2008-05-02

    Logged In: YES
    user_id=1001095
    Originator: NO

    Fixed tests (rev. 530)

     
  • Alex Fabijanic
    Alex Fabijanic
    2008-05-14

    Logged In: YES
    user_id=1001095
    Originator: NO

    The latest fix (alongside with some Solaris threading fixes) for this issue is in trunk svn (rev. 549):

    http://poco.svn.sourceforge.net/viewvc/poco?view=rev&revision=549

    The problem with the previous patch was that POCO_OS_CYGWIN is always #defined.
    To detect an OS, use '#if (POCO_OS == xxx)', where 'xxx' is the OS name as #defined in Platform.h

    Serge, please backport rev. 549. to 1.3.3. branch.
    Richard, please verify that CYGWIN builds and tests pass.

    Alex

     
  • Alex Fabijanic
    Alex Fabijanic
    2008-06-03

    Logged In: YES
    user_id=1001095
    Originator: NO

    Fixed in SVN, 1.3.3 branch, rev. 583

     
  • Tested in CYGWIN. Everything's OK.

    Regards,

    Richard

     
  • Tested in CYGWIN. Everything's OK.

    Regards,

    Richard