Re: Non-Joinable Threads



I'm using Curl for the download system, and I also plan for it to be cross-platform so I want to stick with GtkMM as I've already tested the threads on win32.

On 7/26/06, Jean-Marc Valin <jean-marc valin usherbrooke ca> wrote:
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]