FSMaxB
Follow

I just noticed that having access to a memory region (mprotect) can be interpreted as having a resource.

Following the principle, that resource can be encapsulated in an object that automatically unlocks the memory when constructed and locks it again when destructed.

mastodon.cloud

Generalistic and moderated instance.
Everyone is welcome as long as you follow our code of conduct!