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. ending single thread

ending single thread

Scheduled Pinned Locked Moved C / C++ / MFC
designhelp
4 Posts 2 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.
  • N Offline
    N Offline
    neha agarwal27
    wrote on last edited by
    #1

    Hi all, I have started one thread(UI thread) several number of times either at same instance of time or at different instance of time. if i want to end a single thread how will it find out which thread to close. can anybody help me in this.... thanks in advance

    M 1 Reply Last reply
    0
    • N neha agarwal27

      Hi all, I have started one thread(UI thread) several number of times either at same instance of time or at different instance of time. if i want to end a single thread how will it find out which thread to close. can anybody help me in this.... thanks in advance

      M Offline
      M Offline
      Mila025
      wrote on last edited by
      #2

      Hi, Every thread will have individual handle and ID. Besides everything depends on way how you will want closing your threads.

      ----------- Mila

      N 1 Reply Last reply
      0
      • M Mila025

        Hi, Every thread will have individual handle and ID. Besides everything depends on way how you will want closing your threads.

        ----------- Mila

        N Offline
        N Offline
        neha agarwal27
        wrote on last edited by
        #3

        How to get that individual handle?

        M 1 Reply Last reply
        0
        • N neha agarwal27

          How to get that individual handle?

          M Offline
          M Offline
          Mila025
          wrote on last edited by
          #4

          when you create thread e.g. HANDLE hHandle = CreateThead( ... ); CreateThead function returns handle to the only that one thread. Besides the last param of CreateThead returns ID of the thread.

          ----------- Mila

          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