Re: (no subject)
- From: Silviu Minut <minut math msu edu>
- To: Eric Monsler <emonsler beamreachnetworks com>
- Cc: gtk-list gnome org
- Subject: Re: (no subject)
- Date: Tue, 12 Dec 2000 15:52:11 -0500 (EST)
On Tue, 12 Dec 2000, Eric Monsler wrote:
> There is something I don't understand here:
>
> > void
> > on_start_clicked (GtkButton *button,
> > gpointer user_data)
> > {
> > if (pthread_create(&THR, NULL, (void *) &work, NULL) != 0){
> > printf("Can't create thread\n");
> > exit(-1);
> > }
> >
> > work(NULL);
> > }
> >
>
>
> I appears to me that you are both starting a thread to do "work", and
> you are calling "work" directly from your on_start_clicked callback
> function.
>
That's right. What an idiot! I apologize.
I commented out the standalone call to work() and all is well. Beginner's
blunders.
Thank you!
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]