[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
[an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]![]() |
![]() |
![]() |
|||||||||||||||||||||||||
|
|||||||||||||||||||||||||||
![]() |
![]() |
![]() |
Sune Fischer <sslug@sslug> skrev i en nyhedsmeddelelse:sslug@sslug > > Hmm, hvordan giver man det tredie argument til > > int pthread_create(pthread_t * thread, > pthread_attr_t * attr, void * (*start_routine)(void > *), void * arg); > > hvis nu min start_rutine har prototype: > > char* myrutine(int,int); > > > Tak, > > Sune > __________________________________________________ > Do You Yahoo!? > Thousands of Stores. Millions of Products. All in one place. > Yahoo! Shopping: http://shopping.yahoo.com > Så vidt jeg kan forstå, så er der problemer med "void * (*start_routine)(void*)" delen af ovenstående. int MyThreadCreater(void) { pthread_t thread; pthread_attr_t attr; int arg; pthread_create(&thread,&attr,(void *()) &myrutine,(void *) &arg); } char *myrutine(int,int) { } Skulle løse problemet, IIRC. Med venlig hilsen Keld Laursen
![]() |
![]() |
![]() |
||||||||||||
|
||||||||||||||
![]() | ||||||||||||||
|
||||||||||||||
![]() |
![]() |
![]() |