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

Static variables with __thread instead/POSIX #1

Open
carloscabanero opened this issue Aug 16, 2016 · 0 comments
Open

Static variables with __thread instead/POSIX #1

carloscabanero opened this issue Aug 16, 2016 · 0 comments
Labels

Comments

@carloscabanero
Copy link
Member

To make mosh multithreaded I had to transform all of the static variables into per thread ones. I used to routes to do this, using POSIX thread variables as much as I could as it is compatible with more iOS versions. Unfortunately some of them couldn't be done in this way and where triggered at the compiler level with __thread.

It would be great to remove this two implementations and either go with one for everything, or even better, fix mosh from the root.

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

No branches or pull requests

1 participant