Skip to content
This repository was archived by the owner on Nov 16, 2023. It is now read-only.

Ensure thread-safety #7

Open
mitinarseny opened this issue Oct 31, 2020 · 0 comments
Open

Ensure thread-safety #7

mitinarseny opened this issue Oct 31, 2020 · 0 comments

Comments

@mitinarseny
Copy link
Contributor

According to documentation of std::malloc:

The following functions are required to be thread-safe:

  • The library versions of operator new and operator delete
  • User replacement versions of global operator new and operator delete
  • std::calloc, std::malloc, std::realloc, std::aligned_alloc (since C++17), std::free

Calls to these functions that allocate or deallocate a particular unit of storage occur in a single total order, and each such deallocation call happens-before the next allocation (if any) in this order.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant