From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28215 invoked by alias); 7 Oct 2009 01:37:24 -0000 Received: (qmail 28204 invoked by uid 22791); 7 Oct 2009 01:37:23 -0000 X-SWARE-Spam-Status: No, hits=-0.4 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail-pz0-f189.google.com (HELO mail-pz0-f189.google.com) (209.85.222.189) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 07 Oct 2009 01:37:19 +0000 Received: by pzk27 with SMTP id 27so4282200pzk.12 for ; Tue, 06 Oct 2009 18:37:18 -0700 (PDT) MIME-Version: 1.0 Received: by 10.142.59.17 with SMTP id h17mr146173wfa.45.1254879438205; Tue, 06 Oct 2009 18:37:18 -0700 (PDT) Date: Wed, 07 Oct 2009 01:37:00 -0000 Message-ID: <9c726c510910061837y30df5d3eq107b3d58a71fc3d3@mail.gmail.com> Subject: Default Stack Size 0?? From: Siva Chandra To: pthreads-win32 Content-Type: text/plain; charset=ISO-8859-1 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/msg00051.txt.bz2 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