Re: Non-Joinable Threads
- From: Jean-Marc Valin <jean-marc valin usherbrooke ca>
- To: Jeremy Harmon <intrathink gmail com>
- Cc: gtkmm-list gnome org
- Subject: Re: Non-Joinable Threads
- Date: Wed, 26 Jul 2006 14:00:25 +1000
It doesn't answer your question, but why not just poll() all the sockets
together inside the gtk main loop and avoid threads in the first place?
Jean-Marc
On Tue, 2006-07-25 at 23:56 -0400, Jeremy Harmon wrote:
> I'm trying to use threads for a multi-download system. When I create
> the threads as joinable they work great, but my GUI freezes as it's
> waiting for it to finish. So when I try to create it as a non-joinable
> thread the thread never starts. I've been looking for information
> about threads for a few days but haven't found much.
>
> I'm using the following code to create the thread:
>
> Glib::Thread *const Download =
> Glib::Thread::create(sigc::mem_fun(Transfer, &CDownload::download),
> false);
>
> Thanks,
> Jeremy Harmon
> _______________________________________________
> gtkmm-list mailing list
> gtkmm-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtkmm-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]