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. Threading

Threading

Scheduled Pinned Locked Moved C / C++ / MFC
design
2 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 m executing a ui thread and inside that thread there is a different ui thread starting and in that third ui thread starts. Now what i want to know is if i close 1st thread by using PostThreadMessage like this

    PostThreadMessage(WM_QUIT,NULL,NULL);

    all the other threads which are called inside that thread are closed automatically or we have to close them explicitily. thanks in advance

    T 1 Reply Last reply
    0
    • N neha agarwal27

      Hi all , i m executing a ui thread and inside that thread there is a different ui thread starting and in that third ui thread starts. Now what i want to know is if i close 1st thread by using PostThreadMessage like this

      PostThreadMessage(WM_QUIT,NULL,NULL);

      all the other threads which are called inside that thread are closed automatically or we have to close them explicitily. thanks in advance

      T Offline
      T Offline
      TPN
      wrote on last edited by
      #2

      As I know, there is no concept said that there is parent thread and child thread, so you must close each thread explicility. Thank you.

      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