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

Reason of Infinite loop #20

Open
zheng-yongping opened this issue Sep 14, 2019 · 0 comments
Open

Reason of Infinite loop #20

zheng-yongping opened this issue Sep 14, 2019 · 0 comments

Comments

@zheng-yongping
Copy link

require 'gnuplotrb'
puts GnuplotRB::Plot.new('XXX').to_svg()

It may work like this:

create error handler thread (but not running)
check_errors => ok
check_errors => ok
.
.
.
check_errors => ok
handler thread start...
sleep 0.01 until File.size?(inner_opts[:output]) => loop forever

The error handler thread may start after all check ran, and the exception can not be raise.

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

No branches or pull requests

1 participant