-
Notifications
You must be signed in to change notification settings - Fork 849
Assert when sm callback to wrong thread #4860
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
Conversation
e549515 to
f40fed8
Compare
|
Updated for @oknet's suggestion. We limit the thread when we callback. I have no idea which one would be better . |
|
Alternatively should the InkAPI call just reschedule to an ET NET thread if it lands on the wrong type fo thread? |
|
I would rather have the plugin assert instead of having a bug in the plugin and it going unnoticed because we are fixing things up under the hood. |
|
Agreed. @shinrich How does this relate to the other changes that were done with regards to locks (mutexes) and automatically acquire those in many cases ? |
f40fed8 to
0636a44
Compare
|
Agreed with @shinrich , the By TS-2271, Now we can also allow |
|
I think this is unrelated to the auto-locking concerns. This code is already handling the reschedule. The original code would reschedule for any non REGULAR thread. The changes will now reschedule for any non REGULAR or non ET_NET threads. So the case that will now be rescheduled that wouldn't have been in the original would be REGULAR threads that are not ET_NET. So the added assert should not ever trigger. Still looks good to me. |
|
Cherry picked to 8.1.0 |
The plugin might schedule the sm to task thread. And it will crash here because task thread doses not have thread session pool.