public inbox for pthreads-win32@sourceware.org
 help / color / mirror / Atom feed
From: "Phil Frisbie, Jr." <phil@hawksoft.com>
To: "Siva Chandra" <sivachandra@gmail.com>
Cc: "pthreads-win32" <pthreads-win32@sourceware.org>
Subject: Re: Default Stack Size 0??
Date: Wed, 07 Oct 2009 04:52:00 -0000	[thread overview]
Message-ID: <88f3e35bf4f87ba12f8608bce4d7cf3c.squirrel@webmail.sonic.net> (raw)
In-Reply-To: <9c726c510910061837y30df5d3eq107b3d58a71fc3d3@mail.gmail.com>

On Windows a stack size of "0" means the size is inherited from the parent
thread.

On Tue, October 6, 2009 6:37 pm, Siva Chandra wrote:
> Hi,
>
> You can consider me to be a newbie to pthreads-win32. I downloaded and
> am using pthreads-2.8.0 static library and dll binaries with MinGW. I
> find the default stack size to be zero. Consider the code snippet
> below:
>
>     pthread_attr_t attr;
>     pthread_attr_init(&attr);
>
>     size_t defStackSize;
>     pthread_attr_getstacksize(&attr, &defStackSize);
>
>     cout << "Default stack size = " << defStackSize << endl;
>
> The above code prints 0! Does this mean that I cannot use the default
> attributes in most but the simplest of my application??
>
> Thanks and regards,
> Siva Chandra

-- 
Phil Frisbie, Jr.
Hawk Software
http://www.hawksoft.com

      reply	other threads:[~2009-10-07  4:52 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-07  1:37 Siva Chandra
2009-10-07  4:52 ` Phil Frisbie, Jr. [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=88f3e35bf4f87ba12f8608bce4d7cf3c.squirrel@webmail.sonic.net \
    --to=phil@hawksoft.com \
    --cc=pthreads-win32@sourceware.org \
    --cc=sivachandra@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).