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

Bugfix/22 improve timer thread usage #23

Merged

Conversation

amarqueslee
Copy link
Contributor

This is my first draft at nailing down the tick thread logic, as discussed in issue #17 . I essentially went ahead and tried out the proposal I put forward in corresponding issue #22 .

I tested it and - dare I say it - it works for me. My testing involved opening a tall file, scrolling up/down for a bit, and issuing an echo timer_info() at various intervals to check for leaks. The command consistently returned [] so I think it's good.

@yuttie yuttie merged commit c880bdc into yuttie:master Feb 22, 2018
@yuttie
Copy link
Owner

yuttie commented Feb 22, 2018

@amarqueslee Thank you for your work! I've just merged your PR.
Sorry for my late response...

This PR fixes the possibility that multiple threads can be spawned and runs in parallel.
Now we always have at most one thread 😃

Again, I appreciate your investigation and proposals!

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