You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Because menoh_model_run() can take long time, it is desirable to have a function for canceling the computation from other threads.
In Ruby binding, I'm trying to release the GVL (giant VM lock, aka GIL or global interpreter lock) while executing menoh_model_run() in this PR. But doing so requires to pass a function to cancel the execution safely. If I don't pass proper function, the program will not respond for Control+C or other shutdown events. (see https://github.com/ruby/ruby/blob/v2_5_3/thread.c#L1367-L1451 for detail)
I don't know the cases of other languages with GVL (e.g CPython). But other such language may suffer the same issue.
The text was updated successfully, but these errors were encountered:
Because
menoh_model_run()
can take long time, it is desirable to have a function for canceling the computation from other threads.In Ruby binding, I'm trying to release the GVL (giant VM lock, aka GIL or global interpreter lock) while executing
menoh_model_run()
in this PR. But doing so requires to pass a function to cancel the execution safely. If I don't pass proper function, the program will not respond for Control+C or other shutdown events. (see https://github.com/ruby/ruby/blob/v2_5_3/thread.c#L1367-L1451 for detail)I don't know the cases of other languages with GVL (e.g CPython). But other such language may suffer the same issue.
The text was updated successfully, but these errors were encountered: