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.

Sign in to participate in the conversation

[Notice Regarding the Transfer of the / Services] We have received several inquiries showing interest in a transfer following the announcement of the end of the and services. As a result of subsequently evaluating the situation and making preparations, we have decided that the corresponding services will be transferred to Sujitech, LLC. on June 30. Thank you.