Driver Problems? Questions? Issues?
Put OSR's experience to work for you! Contact us for assistance with:
  • Creating the right design for your requirements
  • Reviewing your existing driver code
  • Analyzing driver reliability/performance issues
  • Custom training mixed with consulting and focused directly on your specific areas of interest/concern.
Check us out. OSR, the Windows driver experts.

OSR Seminars


Go Back   OSR Online Lists > ntdev
Welcome, Guest
You must login to post to this list
  Message 1 of 1  
09 Jul 18 17:43
anton bassov
xxxxxx@hotmail.com
Join Date: 16 Jul 2006
Posts To This List: 4513
RE: Re: RE: RE: RE: Re: [BULK] Re: Modern C++ Features in Kernel Mode Drivers

> Ooh, that's so hard.? std::unique_lock supplies unlock() and lock() primitives ...... > Honestly, I don't know why you feel empowered to criticize tools you don't use > and don't understand. Please note that I was speaking _specifically_ about the imaginary class "PGV_Acquire_Spinlock(PKSPIN_LOCK)" that Peter had mentioned - judging from his example, its constructor takes a spinlock as an argument and locks it, so that its destructor must be unlocking it. Certainly, you can also define lock() and unlock() methods for it so that you can do things manually if you wish, but at this point you are going to end up with exactly the same code that you are trying to avoid writing.....plus a C++ class > you are entirely out of line to argue that C++ is inherently inferior. Come on - I am not going THAT far, am I..... The only thing that I am saying is that everything that you do in C++ can be done in C in a straightforward way..... Anton Bassov
Posting Rules  
You may not post new threads
You may not post replies
You may not post attachments
You must login to OSR Online AND be a member of the ntdev list to be able to post.

All times are GMT -5. The time now is 19:27.


Copyright ©2015, OSR Open Systems Resources, Inc.
Based on vBulletin Copyright ©2000 - 2005, Jelsoft Enterprises Ltd.
Modified under license