Original Post
I''m working on an interesting project right now that involves some multi-threaded stuff for game development. However, I''m running into some blocks with the win32 API. I''m using the standard API with CreateThread/SuspendThread/ResumeThread/... for my thread manager.
What I want to be able to do is, given a thread handle or thread id, find out if that current thread is blocked (specifically, waiting on a semaphore.)
Does anyone know how to do this with the Windows Thread API? Or are there any other thread API''s that can be used under Windows that might allow this kind of functionality?