Go4Expert

Go4Expert (http://www.go4expert.com/)
-   C (http://www.go4expert.com/forums/c/)
-   -   Creating a thread class using pthreads, problem in pthread_create (http://www.go4expert.com/forums/creating-thread-class-using-pthreads-t20457/)

atul.sharma12 21Dec2009 16:58

Creating a thread class using pthreads, problem in pthread_create
 
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

Gene Poole 21Dec2009 22:14

Re: Creating a thread class using pthreads, problem in pthread_create
 
You'll have to be more specific. It is not at all clear what problem you are having.


All times are GMT +5.5. The time now is 02:41.