mstrelan
asked on
pass parameter to pthread_create
Probably too easy to Google but easier to just ask the experts :P
I have a call to pthread_create(&tid, &attr, workthread, NULL);
I want to be able to send a mixed array as the parameters... to be more precise I want to pass an int (sockfd) a string (message received on the socket).
How do I do this and how to I handle it in workthread?
Cheers guys
I have a call to pthread_create(&tid, &attr, workthread, NULL);
I want to be able to send a mixed array as the parameters... to be more precise I want to pass an int (sockfd) a string (message received on the socket).
How do I do this and how to I handle it in workthread?
Cheers guys
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Open in new window