- Re: Cancel Safe Queues
- Posted by on July 27th, 2004
Define your own structure with IO_CSQ inside:
struct CancelSafeQueue
{
KSPIN_LOCK m_SpinLock;
IO_CSQ m_Csq;
};
CsqAcquireLock will look as follows:
VOID
CancelSafeQueue::acquireLock( IN PIO_CSQ Csq, OUT PKIRQL Irql )
{
CancelSafeQueue& p = *CONTAINING_RECORD( Csq, CancelSafeQueue, m_Csq );
KeAcquireSpinLock( &p.m_SpinLock, Irql );
}
"Ben Geib" <BenGeib@discussions.microsoft.com> wrote in message
news:EAEBA3AA-0D9A-499D-B0C8-C354ABE6B79D@microsoft.com...
Similar Posts
- Skip Lists and Priority Queues? (Programming) by Leslie Sanford
- Choice of data structure for large event queues? (Programming) by Chris McDonald
- egress queues on 6500 (Routers) by what@meworry.com
- Intelligent queues - self inserting elements (Programming) by Siddhartha Jain
- Cancel-safe queue: KeWaitForSingleObject in thread func cauing crash (Drivers) by Tareq

