When using WaitFor() , ResetEvent and SetEvent as a semaphore , if a thread is using BlockWrite() and the execution of BlockWrite() is conditional on WaitFor() , will BlockWrite() continue to function after it is called once MySemaphore.ResetEvent is called ?
A pseudo code example below
---------main loop----------
MySemaphore.ResetEvent;doing something
MySemaphore.SetEvent
----- Thread------------
MySemaphore.WaitFor(10);
BlockWrite()-------------------------
Thanks
Brian
View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Syncobjs-Event-and-BlockWrite-question-tp5729411.html
Sent from the Free Pascal - General mailing list .
