Re: [AD] public thread API

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


On 2008-08-06, Elias Pschernig <elias@xxxxxxxxxx> wrote:
> On Wed, 2008-08-06 at 11:04 +1000, Peter Wang wrote:
> > 
> > Taking it a bit further, al_create_thread could not just allocate the
> > space for the thread handle, but call pthread_create.  But we would not
> > actually execute the user's thread function until al_start_thread.
> > I believe this is useful for cases like:
> > 
> >     T = al_create_thread(thread_func);
> >     do further initialisation, using T
> >     al_start_thread(T);
> > 
> > Not sure how common it is.
> > 
> 
> I was thinking about creating the threads first, then you could run them
> multiple times, then destroy them. (So would not call pthread_create I
> think.)

Any particular use for that?

Peter





Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/