Skip to content

C++11 TLS simulation#111

Open
DNikolaevAtRocket wants to merge 1 commit into
ibmruntimes:zopen2from
DNikolaevAtRocket:zopen2
Open

C++11 TLS simulation#111
DNikolaevAtRocket wants to merge 1 commit into
ibmruntimes:zopen2from
DNikolaevAtRocket:zopen2

Conversation

@DNikolaevAtRocket
Copy link
Copy Markdown

The PR implements TLS simulation in C++11 addressing #108.
It's supposed to be functionally complete.

Another goal is to make porting of C++11 code (or higher levels) using thread_local as seamless as possible.

Example:

// Original:
// thread_local std::string name = "default";

// Simulation:
static __tls<std::string> tls_name;
auto &name = tls_name.get([]{ return std::string("default"); });

// ...
name = "updated";

Thanks!

Signed-off-by: Dmitry Nikolaev <dnikolaev@rocketsoftware.com>
@sachintu47
Copy link
Copy Markdown
Collaborator

@DNikolaevAtRocket Could you move the target branch to zopencommunity:zopen2

@DNikolaevAtRocket
Copy link
Copy Markdown
Author

@sachintu47,

I don't see an option in UI to change the target repo, so I've cloned the PR instead:
zopencommunity#2

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