Creating a thread class using pthreads, problem in pthread_create

atul.sharma12's Avatar, Join Date: May 2008
Go4Expert Member
Hi All,

I have created a interface class for threads using Pthreads for Linux plateform. In the class i have kept the run function as pure virtual function so by inheriting this class fuction can be redefined by the class.

but the problem is in create function where I am calling pthread_create function, where it requires the service function used by thread. I am not very much sure How Can I do this correctly. If any Idea let me know.

Thanks and regards
Atul Sharma

Last edited by atul.sharma12; 21Dec2009 at 17:13..
0
Gene Poole's Avatar, Join Date: Nov 2009
Contributor
You'll have to be more specific. It is not at all clear what problem you are having.