Creating a thread in a class - C++

Discussion in 'C++' started by rag84dec, Aug 7, 2009.

  1. rag84dec

    rag84dec New Member

    Joined:
    Jul 17, 2007
    Messages:
    49
    Likes Received:
    0
    Trophy Points:
    0
    HI all,

    I need to create a thread of 2 functions belonging to a same class.Can any one help me write
    a class with 2 functions being threads?. Is there any predefined thread class from which i
    can inherit?
    Thanks in advance....
     
  2. xpi0t0s

    xpi0t0s Mentor

    Joined:
    Aug 6, 2004
    Messages:
    3,009
    Likes Received:
    203
    Trophy Points:
    63
    Occupation:
    Senior Support Engineer
    Location:
    England
    What operating system and compiler?
     
  3. rag84dec

    rag84dec New Member

    Joined:
    Jul 17, 2007
    Messages:
    49
    Likes Received:
    0
    Trophy Points:
    0
    OS- Windows Xp
    Compiler - VC++
     

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