Windows System Software -- Consulting, Training, Development -- Unique Expertise, Guaranteed Results

Before Posting...
Please check out the Community Guidelines in the Announcements and Administration Category.

RE: Re: RE: RE: RE: Re: [BULK] Re: Modern C++ Features in Kernel Mode Drivers

anton_bassovanton_bassov Member Posts: 4,865
> 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 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
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Upcoming OSR Seminars
Writing WDF Drivers 25 Feb 2019 OSR Seminar Space
Developing Minifilters 8 April 2019 OSR Seminar Space