Re: Simple race condition that I can't solve.
- From: Cool Guy <coolguy@xxxxxxx>
- Date: Sun, 12 Jun 2005 12:12:36 +0100
Cool Guy <coolguy@xxxxxxx> wrote:
> Today I found that an app I'm working on has a race condition. I've been
> trying to solve this for ages and I have no idea. Going outta my mind
> here.
Here's more info...
I set /closed/ to true in the main thread, and expect the event handler
(worker_Finished) to then *not* try to call HandleFinished on the main
thread. However, it ends up that it *does* call it.
The call to Thread.Sleep() in the main thread is there just to ensure that
the race condition happens (otherwise, it'll happen every so often, I
believe).
.
- References:
- Simple race condition that I can't solve.
- From: Cool Guy
- Simple race condition that I can't solve.
- Prev by Date: DropDownList in asp.net
- Next by Date: Re: GC Question
- Previous by thread: Simple race condition that I can't solve.
- Next by thread: Re: Simple race condition that I can't solve.
- Index(es):
Relevant Pages
|