public inbox for
 help / color / mirror / Atom feed
* pthreads disappearing
@ 2004-05-13  5:13 Marisa DeMeglio
  0 siblings, 0 replies; only message in thread
From: Marisa DeMeglio @ 2004-05-13  5:13 UTC (permalink / raw)
  To: pthreads-win32


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.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-05-13  5:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-05-13  5:13 pthreads disappearing Marisa DeMeglio

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).