|
NUMA++ 0.11.0
|
Applies memory policy to this thread at construction and reverts to previous at destruction. More...
#include <mempolicy.hpp>
Public Member Functions | |
| ScopedMemPolicy (MemPolicy const &new_policy) | |
| Constructs an object that applies the provided policy during construction and restores it during destruction. | |
| ~ScopedMemPolicy () noexcept | |
| Restores old policy, if any. | |
| ScopedMemPolicy () noexcept=default | |
| Initialized a scoped memory policy that does nothing and holds no state about previous policy. | |
| void | Swap (ScopedMemPolicy &rhs) noexcept |
Swap state with another ScopedMemPolicy. | |
| std::error_code | Restore () noexcept |
| Restores memory policy that was read during construction. | |
Applies memory policy to this thread at construction and reverts to previous at destruction.
Definition at line 383 of file mempolicy.hpp.
|
inlineexplicit |
Constructs an object that applies the provided policy during construction and restores it during destruction.
| std::system_error | containing the error code if it fails to apply new policy. Attempt to restore old policy will be done. |
Definition at line 392 of file mempolicy.hpp.
|
nodiscardnoexcept |
Restores memory policy that was read during construction.