Re: KeSetEvent and context switches
- From: Mark Roddy <markr@xxxxxxxxxxxxxx>
- Date: Mon, 25 Sep 2006 09:17:44 -0400
Calin Iaru wrote:
Hi *,I think you were just lucky on XP and W2K. Your design is wrong.
I have a bug which seems to be related to context switches while doing a KeSetEvent. So, the code looks like this - 2 threads, one signals the second, and the second frees the event. It so happens that on Server 2003 x86, the second thread creates a new structure on the old event, and this corrupts the event's internal state on the first thread.
It seems that KeSetEvent is not atomic, and the DDK confirms it. It is quite strange that it does not appear on XP and W2K.
Let me know your thoughts on this,
Calin
.
- Prev by Date: Re: KeSetEvent and context switches
- Next by Date: Re: Why are WiFi drivers for x64 unavailable?!?!?!?
- Previous by thread: Re: KeSetEvent and context switches
- Next by thread: Re: KeSetEvent and context switches
- Index(es):
Relevant Pages
|