From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19889 invoked by alias); 7 Oct 2009 04:52:13 -0000 Received: (qmail 19881 invoked by uid 22791); 7 Oct 2009 04:52:13 -0000 X-SWARE-Spam-Status: No, hits=-1.1 required=5.0 tests=BAYES_05 X-Spam-Check-By: sourceware.org Received: from b.mail.sonic.net (HELO b.mail.sonic.net) (64.142.19.5) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 07 Oct 2009 04:52:06 +0000 Received: from webmail.sonic.net (a.webmail.sonic.net [64.142.100.132]) by b.mail.sonic.net (8.13.8.Beta0-Sonic/8.13.7) with ESMTP id n974q4ZH003046; Tue, 6 Oct 2009 21:52:04 -0700 Received: from 74.196.25.154 (SquirrelMail authenticated user philf) by webmail.sonic.net with HTTP; Tue, 6 Oct 2009 21:52:04 -0700 Message-ID: <88f3e35bf4f87ba12f8608bce4d7cf3c.squirrel@webmail.sonic.net> In-Reply-To: <9c726c510910061837y30df5d3eq107b3d58a71fc3d3@mail.gmail.com> References: <9c726c510910061837y30df5d3eq107b3d58a71fc3d3@mail.gmail.com> Date: Wed, 07 Oct 2009 04:52:00 -0000 Subject: Re: Default Stack Size 0?? From: "Phil Frisbie, Jr." To: "Siva Chandra" Cc: "pthreads-win32" User-Agent: SquirrelMail/1.4.19 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-IsSubscribed: yes Mailing-List: contact pthreads-win32-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: pthreads-win32-owner@sourceware.org X-SW-Source: 2009/txt/msg00052.txt.bz2 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