-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Propagate user app panics to SF for async apis (#100)
Previously user app code panics in the SF callback/notification code causes the process to exit. This PR changes this behavior: for all SF async api notifications with Begin and End calls, mssf provides user an async function to implement. If user function panics, mssf considers the callback/notification failed with error code E_UNEXPECTED and returns this error code to SF. For synchronous apis that user implements, the panic is unhandled and will cause process to terminate, because mssf currently does not do anything for synchronous SF calls, user app code is directly executed on SF threads.
- Loading branch information
Showing
2 changed files
with
106 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters