create worker thread in managed c++

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Daylor

    create worker thread in managed c++

    hi.
    i have class foo.

    and 2 methods.
    X-method.
    Y-method.

    i want inside X method , to start worker thread (managed) of Y method.

    can i do it ,and how ?

    have a nice day.


  • Jochen Kalmbach

    #2
    Re: create worker thread in managed c++

    Daylor wrote:
    [color=blue]
    > i want inside X method , to start worker thread (managed) of Y method.[/color]

    Use the ThreadStart-delegate:

    For an example see:
    Creating Threads
    Find official documentation, practical know-how, and expert guidance for builders working and troubleshooting in Microsoft products.

    us/cpguide/html/cpconcreatingth reads.asp


    --
    Greetings
    Jochen

    Do you need a memory-leak finder ?

    Comment

    • Nishant S

      #3
      Re: create worker thread in managed c++

      See http://www.codeproject.com/managedcpp/mcppthreads01.asp

      --
      Regards,
      Nish [VC++ MVP]



      "Daylor" <Daylor@012.net .il> wrote in message
      news:3f48e588$1 @news.012.net.i l...[color=blue]
      > hi.
      > i have class foo.
      >
      > and 2 methods.
      > X-method.
      > Y-method.
      >
      > i want inside X method , to start worker thread (managed) of Y method.
      >
      > can i do it ,and how ?
      >
      > have a nice day.
      >
      >[/color]


      Comment

      Working...