+ Reply to Thread
Results 1 to 2 of 2

Thread: Is WIN32 window handle thread safe?

  1. #1
    Junior Member
    Join Date
    May 2012
    Posts
    23

    Is WIN32 window handle thread safe?

    Is WIN32 window handle thread safe?

    Can I assume that window will handle multiple threads and there is no multi-threading issue?

    Any thoughts?

  2. #2
    Junior Member
    Join Date
    Jun 2012
    Posts
    24
    No, WIN32 window handle is not thread safe.

    For each thread you have a thread procedure. That thread procedure is bound to one thread.

    If you want to communicate messages from another thread to window than you can do via WIN32 APIs:
    a. SendMessage
    b. PostMessage

+ Reply to Thread

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts