[wdmaudiodev] Holding a sync object during a call to GetMapping/ReleaseMapping

  • From: Eugene Muzychenko <emuzychenko@xxxxxxxxx>
  • To: wdmaudiodev@xxxxxxxxxxxxx
  • Date: Wed, 11 Apr 2007 23:46:25 +0700

Hello!

DDK documentation states that it's dangerous to hold a spin lock
during a call to GetMapping/ReleaseMapping. I think it is because
PortCls uses its own spin lock during a call to some miniport driver
methods.

But is it safe to hold any other synchronization object (mutex or
semaphore) during a call to GetMapping/ReleaseMapping? Could it cause
a cross-lock in a result of, for example, IRP reusing and calling to
MappingAvailable before ReleaseMapping returns?

Regards,
Eugene


******************

WDMAUDIODEV addresses:
Post message: mailto:wdmaudiodev@xxxxxxxxxxxxx
Subscribe:    mailto:wdmaudiodev-request@xxxxxxxxxxxxx?subject=subscribe
Unsubscribe:  mailto:wdmaudiodev-request@xxxxxxxxxxxxx?subject=unsubscribe
Moderator:    mailto:wdmaudiodev-moderators@xxxxxxxxxxxxx

URL to WDMAUDIODEV page:
http://www.wdmaudiodev.com/

Other related posts:

  • » [wdmaudiodev] Holding a sync object during a call to GetMapping/ReleaseMapping