From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11927 invoked by alias); 13 May 2004 05:13:09 -0000 Mailing-List: contact pthreads-win32-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: pthreads-win32-owner@sources.redhat.com Received: (qmail 11842 invoked from network); 13 May 2004 05:12:53 -0000 Received: from unknown (HELO web60602.mail.yahoo.com) (216.109.118.222) by sourceware.org with SMTP; 13 May 2004 05:12:53 -0000 Message-ID: <20040513050049.87412.qmail@web60602.mail.yahoo.com> Received: from [24.215.231.141] by web60602.mail.yahoo.com via HTTP; Wed, 12 May 2004 22:00:49 PDT X-RocketYMMF: marisa515 Date: Thu, 13 May 2004 05:13:00 -0000 From: Marisa DeMeglio Reply-To: marisa@dinf.ne.jp Subject: pthreads disappearing To: pthreads-win32@sources.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2004/txt/msg00059.txt.bz2 Hi, I'm new to pthreads. What I'm trying to do is have an application with two parts: a) main process b) GUI thread (using GTK) Periodically, the main process needs to interrupt gtk_main (gtk's main loop) when there is new data available from the server (well it's another local process but referring to it as a server will probably convey the point). The server will call main_process_dll->receiveData(data). Then the main process can interrupt gtk_main with a gsignal (which is out of the scope of this list). Otherwise, the GUI thread needs to keep running until explicitly killed. So, what I am seeing at the moment is when I create a pthread, it runs for a short while and then disappears. Does this have to do with the stack size? I am passing in NULL as the second parameter to pthread_create(). Even when I run my test program without using GTK (and instead use a while(1) loop), I see the same behavior. Any advice would be much appreciated. Thanks! Marisa