Linux -Blue forest free software | Return to home page | Site Map | Search WWW | Contact Us |
Your current position : Homepage > Free Software > Technological exchanges >Application Programming


    

Blue Forest http://www.lslnet.com at 10:18 on June 6, 2006


Pthread neighborhoods in the use of C + +

If I use pthread_create to create a thread.
Int pthread_create (pthread_t *THREAD.
Pthread_attr_t * ATTR.
Void * (*START_ROUTINE) (void *)
Void * ARG);

The third thread of the specified parameters such as population, only one is a (void *) function parameters.

Will the cpp document, the third parameter is not the function of a certain type of statement is not a member function? I tried, it seems not.
: : *classname As void func (void *arg) compiler will be incorrect report.

Only Declaration
Void *func (void *arg)
Can.
Is it only for a statement
Void *func (void *arg)?

Pthread neighborhoods in the use of C + +

Thread which can only be deployed for the overall function is not a member of the group.
But you can use static member function.



 Privacy Policy  Copyright © 1999-2000 LSLNET.COM. All rights reserved. Blue Forest website owners. E-mail : Webmaster@lslnet.com