Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Thread in VC++ !

Thread in VC++ !

Scheduled Pinned Locked Moved C / C++ / MFC
c++helptutorialquestion
6 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    lucdt
    wrote on last edited by
    #1

    Hi all ! I have developed the application. in my main class, I call 8 thread . The main class must to wait all 8 Thread end to continute do something. How to known all 8 Thread ended ? pls, help me ! Thank alots

    N C G 3 Replies Last reply
    0
    • L lucdt

      Hi all ! I have developed the application. in my main class, I call 8 thread . The main class must to wait all 8 Thread end to continute do something. How to known all 8 Thread ended ? pls, help me ! Thank alots

      N Offline
      N Offline
      Niklas L
      wrote on last edited by
      #2

      You can use the WaitForMultipleObjects function using HANDLEs to your threads and setting bWaitAll to TRUE.

      1 Reply Last reply
      0
      • L lucdt

        Hi all ! I have developed the application. in my main class, I call 8 thread . The main class must to wait all 8 Thread end to continute do something. How to known all 8 Thread ended ? pls, help me ! Thank alots

        C Offline
        C Offline
        Cedric Moonen
        wrote on last edited by
        #3

        Take a look at WaitForSingleObject in the MSDN[^]

        D 1 Reply Last reply
        0
        • L lucdt

          Hi all ! I have developed the application. in my main class, I call 8 thread . The main class must to wait all 8 Thread end to continute do something. How to known all 8 Thread ended ? pls, help me ! Thank alots

          G Offline
          G Offline
          georgwaechter
          wrote on last edited by
          #4

          Hi google georg

          1 Reply Last reply
          0
          • C Cedric Moonen

            Take a look at WaitForSingleObject in the MSDN[^]

            D Offline
            D Offline
            David Crow
            wrote on last edited by
            #5

            Don't you mean WaitForMultipleObjects()?


            "One must learn from the bite of the fire to leave it alone." - Native American Proverb

            C 1 Reply Last reply
            0
            • D David Crow

              Don't you mean WaitForMultipleObjects()?


              "One must learn from the bite of the fire to leave it alone." - Native American Proverb

              C Offline
              C Offline
              Cedric Moonen
              wrote on last edited by
              #6

              Yes, but it's monday so you have to be indulgent X| I tried to modify my post but I was unable to do it.

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups