Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switched to BufferedLockedHeap #8

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

DhavalKapil
Copy link

No description provided.

@emeryberger
Copy link
Owner

Please add BufferedLockedHeap to this PR, removing it from Heap-Layers. Thanks!

src/include/layers/bufferedlockedheap.h Outdated Show resolved Hide resolved
src/include/layers/bufferedlockedheap.h Show resolved Hide resolved
#include <mutex>
#include <cstddef>

#ifndef thread_local
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks like a nice way to identify thread local stuff across platforms, and one that should probably be factored out into a more generic include. Have you tested it with Windows, etc.?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have only tested it on Linux. See https://stackoverflow.com/a/18298965/3307716

src/include/layers/bufferedlockedheap.h Outdated Show resolved Hide resolved
src/include/layers/bufferedlockedheap.h Outdated Show resolved Hide resolved
src/include/layers/bufferedlockedheap.h Outdated Show resolved Hide resolved
src/include/layers/bufferedlockedheap.h Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants