Creating a thread class using pthreads, problem in pthread_create

Discussion in 'C' started by atul.sharma12, Dec 21, 2009.

  1. atul.sharma12

    atul.sharma12 New Member

    Joined:
    May 21, 2008
    Messages:
    15
    Likes Received:
    2
    Trophy Points:
    0
    Occupation:
    S/W Engg.
    Location:
    This Planet only!!!!
    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: Dec 21, 2009
  2. Gene Poole

    Gene Poole New Member

    Joined:
    Nov 10, 2009
    Messages:
    93
    Likes Received:
    5
    Trophy Points:
    0
    You'll have to be more specific. It is not at all clear what problem you are having.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice