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

refactor: rename ThreadSafeState to State, remove mutexes #3897

Closed
wants to merge 10 commits into from

Conversation

bartlomieju
Copy link
Member

@bartlomieju bartlomieju commented Feb 6, 2020

Because Isolate is now pinned to specific thread there is no longer need to have a state than can be sent between the threads.

Removed all mutexes from state and replaced them with Rc<RefCell<T>>.

@ry
Copy link
Member

ry commented Feb 6, 2020

Looks good but we're going to hold off on this until we can get &mut State passed into each op.

@ry ry closed this Feb 6, 2020
@bartlomieju bartlomieju reopened this Feb 8, 2020
@bartlomieju bartlomieju changed the title refactor: remove ThreadSafeState refactor: rename ThreadSafeState to State, remove mutexes Feb 8, 2020
@bartlomieju
Copy link
Member Author

Used the same approach as @piscisaureus in #3903

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.

3 participants