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

Thread::handle_interrupt #924

Closed
kwando opened this issue Jul 29, 2013 · 4 comments
Closed

Thread::handle_interrupt #924

kwando opened this issue Jul 29, 2013 · 4 comments
Assignees
Milestone

Comments

@kwando
Copy link

kwando commented Jul 29, 2013

I cannot see any reference of this method on jruby. It is in MRI.
But it might not be viable in jruby due to the differens in threading models in jruby vs mri,

@headius
Copy link
Member

headius commented Jul 29, 2013

I believe this will just require us to enable or disable interruptibility in certain scopes, but I need to examine the API spec again.

@kwando
Copy link
Author

kwando commented Jul 29, 2013

Maybe, I just discovered the absence of it when I was about to deploy a fancy torquebox service script earlier today. I needed a way to safely kill a thread that is blocked on IO, (IDLE in IMAP).

I do not know about how hard it is from your perspective but the userside of the API

@kwando
Copy link
Author

kwando commented Jul 29, 2013

Apparently this is called asynchronous exception handling and was introduced in MRI 2.0, you jruby folks are probably aware of that already but it was news for me.

@headius headius added this to the JRuby 9.0.0.0 milestone Nov 12, 2014
@headius headius self-assigned this Nov 12, 2014
@headius
Copy link
Member

headius commented Nov 12, 2014

I ported this logic but I'm not sure it's working properly. Needs to be fixed for 9k but not going to make pre1.

@enebo enebo modified the milestone: JRuby 9.0.0.0 Jul 14, 2015
@headius headius added this to the JRuby 9.0.0.0 milestone Oct 6, 2016
@headius headius closed this as completed Oct 6, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants