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. Message queue

Message queue

Scheduled Pinned Locked Moved C / C++ / MFC
data-structuresquestion
6 Posts 4 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.
  • V Offline
    V Offline
    voorugonda prashanth
    wrote on last edited by
    #1

    is message queue will be per process or thread or System???

    S T L 3 Replies Last reply
    0
    • V voorugonda prashanth

      is message queue will be per process or thread or System???

      S Offline
      S Offline
      Stephen Hewitt
      wrote on last edited by
      #2

      Per thread; but it's created on demand so not all threads will have one. Steve

      V 1 Reply Last reply
      0
      • V voorugonda prashanth

        is message queue will be per process or thread or System???

        T Offline
        T Offline
        ThatsAlok
        wrote on last edited by
        #3

        voorugonda prashanth wrote:

        is message queue will be per process or thread or System??

        Exactly what you want to know?

        "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

        cheers, Alok Gupta VC Forum Q&A :- I/ IV

        1 Reply Last reply
        0
        • V voorugonda prashanth

          is message queue will be per process or thread or System???

          L Offline
          L Offline
          led mike
          wrote on last edited by
          #4

          I believe private queues are machine based. public queues work only in what they call "Domain Mode" and are integrated with Active Directory so.... I don't know exactly what that means, but it sounds like they might be more Enterprise based rather than Machine based.


          "What classes are you using ? You shouldn't call stuff if you have no idea what it does" Christian Graus in the C# forum led mike

          1 Reply Last reply
          0
          • S Stephen Hewitt

            Per thread; but it's created on demand so not all threads will have one. Steve

            V Offline
            V Offline
            voorugonda prashanth
            wrote on last edited by
            #5

            if it is per thread, then why we need handle in MSG structure???

            S 1 Reply Last reply
            0
            • V voorugonda prashanth

              if it is per thread, then why we need handle in MSG structure???

              S Offline
              S Offline
              Stephen Hewitt
              wrote on last edited by
              #6

              voorugonda prashanth wrote:

              then why we need handle in MSG structure???

              I assume you're referring to the hwnd HWND in the struct. We need this because, regardless of any threading issues, we still need to know which window the message is for. From MSDN on GetMessage  "The GetMessage function retrieves a message from the calling thread's message queue." Steve

              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