bug_crusher
March 27th, 2002, 03:31 PM
Hello,
Is it possible to use a semaphore to prevent a single thread from recursing infinitely ? I am handling a notification message, and unfortunately my handler causes the notification to be Sent again on some machines. I need to find a way to know that I am already handling that message so that I can ignore it when it comes in again. Can this be done?
Thanks
Is it possible to use a semaphore to prevent a single thread from recursing infinitely ? I am handling a notification message, and unfortunately my handler causes the notification to be Sent again on some machines. I need to find a way to know that I am already handling that message so that I can ignore it when it comes in again. Can this be done?
Thanks