   [Win32] Threads: PostMessage vs list  & mutex
  I have a window which runs in a separate thread.That window receives some window messages, which need to be forwarded to the main thread as fast as possible.Currently I have a shared eventlist, which gets filled by the window and emptied by the main thread, protected by a mutex.But I wonder, if it might be faster to create a hidden window for the main thread and forward these messages with PostMessage.Does anyone have insight into how fast PostMessage is ?   
  It's probably not any faster than your current method.The fastest way would be to use a lock-free queue, then there's no synchronisation between threads.   ;  The windows message queue generally isn't designed for inter-thread communication, so it's not really ideal performance-wise if you're going to be passing a lot of information. If you want your information to get to the thread as fast as possible, I would go with another mechanism.By the way, you don't need to create a hidden window to send a message to a thread. You can just use PostThreadMessage.   ;  Thx I will take a look into the lock free queue :)MJP: Thx, didn't know that one.   