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

https://en.cppreference.com/w/cpp/named_req/BasicLockable

On Jul 9, 2018, at 9:10 AM, xxxxx@garlic.com wrote:
>
> Yeah, it is exactly like auto ptr in previous version of C++. You will have to specifically ask to get a reference, IIRc.
>
> -pro
>
>> On Jul 9, 2018, at 9:07 AM, xxxxx@hotmail.com wrote:
>>
>>> But with judicious appropriate comments, all should be well, and your chances
>>> of leaving the function’s scope without releasing the lock are zero.
>>
>> True, but consider the scenario when you may have to release the lock and subsequently re-acquire it
>> in some cases. Apparently, you must be able to find a workaround by messing around with scopes and loops, but imagine how ugly it is going to look. As long as you to things in C-like fashion and treat a spinlock as a variable, rather than an object, you task is just straightforward
>>
>>
>>
>> Anton Bassov
>>
>> —
>> NTDEV is sponsored by OSR
>>
>> Visit the list online at: http:
>>
>> MONTHLY seminars on crash dump analysis, WDF, Windows internals and software drivers!
>> Details at http:
>>
>> To unsubscribe, visit the List Server section of OSR Online at http:
>
>
> —
> NTDEV is sponsored by OSR
>
> Visit the list online at: http:
>
> MONTHLY seminars on crash dump analysis, WDF, Windows internals and software drivers!
> Details at http:
>
> To unsubscribe, visit the List Server section of OSR Online at http:</http:></http:></http:></http:></http:></http:>