I am looking for a way to prevent reentrance on the same thread. The problem is that I have a static function that is called from a form in a couple of ways (button, timer), and I have been using a lock to prevent reentrance from other threads and that portion seems to be working fine. However, I believe that asynchronous events on the same thread are causing me trouble.
Any suggestions? Is this a good place for a semaphore? I am not very familiar with using semaphores, mutex's, etc, so I am looking for a pointer in the right direction. All I know is that lock doesn't cover what I need. Thanks.
Joe
Any suggestions? Is this a good place for a semaphore? I am not very familiar with using semaphores, mutex's, etc, so I am looking for a pointer in the right direction. All I know is that lock doesn't cover what I need. Thanks.
Joe