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

Support shenango threads in folly #5

Open
wants to merge 9 commits into
base: feature/add-folly
Choose a base branch
from

Conversation

saubhik
Copy link
Owner

@saubhik saubhik commented Sep 28, 2021

Idea is to replace all occurrences of std::thread in folly with rt::Thread. A successful compilation and a demo would be the aim of this PR.

C++11 Source: https://code.woboq.org/gcc/libstdc++-v3/src/c++11/thread.cc.html

@saubhik
Copy link
Owner Author

saubhik commented Oct 1, 2021

rt::Thread::Id is implemented completely.
rt::GetId can be called from the current thread to get the id.

Tested:
image

@saubhik
Copy link
Owner Author

saubhik commented Oct 1, 2021

rt::Thread::HardwareConcurrency() works good too.

image

@saubhik
Copy link
Owner Author

saubhik commented Oct 6, 2021

Tested rt::SleepFor() works good.

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.

1 participant