This is the mail archive of the pthreads-win32@sourceware.org mailing list for the pthreas-win32 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Struggling with a loop


Mats Aubell wrote:
> I tried to pass it like this:
>
> pthread_create(&thread, NULL, RunApplication, (void*)top)
>
> with the following method:
>
> void * RunApplication(void * arg)
> {
> 	SR *top = SR*(arg);
> 	StartRecogniser();
> 	do {
> 		top->Ask();	
> 		top->Reset();
> 	} while(1);
> 	return 0;
> }
>
> but the create thread method didn't approve of it. 
>
>   
Can you give us a bit more to go on here - what error does it produce?

-- 
Will Bryant



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]