Hi: I am currently writing a application that requires multi-threads and uses events, When an event is signaled, I need the thread to perform fuctions then unset the event, I want the thread to exit only when a variable is true, I boolean. Any ideas what the best way to do this in c++ is. I will use functions in the crt so will need to use BeginThreadEx/EndThreadEx. Any help apreciated. Sean.