Has anyone ever used Boost.Threads in combination with MFC? MFC requires that threads using MFC functionality be created with AfxCreateThread(). What I'm wondering is if it is safe to create threads using AfxCreateThread() (instead of the Boost.Thread functionality) but then use the Boost.Threads mutexs and locking mechanisms to manage the thread activity.
From my brief perusal of the source it looks like it might work. But I was hoping I could find someone who had actually tried it and might have some experiences to share. :)
Any information greatly appreciated! Thanks! Tim.
"Philip, Tim"
Has anyone ever used Boost.Threads in combination with MFC?
MFC requires that threads using MFC functionality be created with AfxCreateThread(). What I'm wondering is if it is safe to create
using AfxCreateThread() (instead of the Boost.Thread functionality) but then use the Boost.Threads mutexs and locking mechanisms to manage the
Yes. threads thread
activity.
Yes, Boost.Threads was designed with this type of use in mind. Mike
participants (2)
-
Michael Glassford
-
Philip, Tim