01-10-2014 09:39 AM
Correct me if I'm wrong, but apparently calls such as PostDeferredCallToThread() don't work between thread pools. If I create a thread pool in a main program (operating in the default thread pool) and make threads, I can't make calls to callbacks in the new thread pool. Thread-safe queues and variables, on the other hand, still seem to work.
01-13-2014 04:16 PM
Hi pblase
Unlike PostDeferredCall(), which always post the call in the main thread, with PostDeferredCalltoThread() you can specify the thread in which to call the callback, not only from the main thread pool.
You can use CmtGetCurrentThrreadID() to specify in which thread you want to call the callback.
Regards
01-14-2014 09:35 AM
See the example in my answer to your other thread.