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
Two subsequent FFI calls are not atomic from an OS point of view.
This means that accessing GetLastError and errno are flaky.
With the work progressing on native assets, our current idea to address this is to wrap the existing C call:
Two subsequent FFI calls are not atomic from an OS point of view.
This means that accessing
GetLastError
anderrno
are flaky.With the work progressing on native assets, our current idea to address this is to wrap the existing C call:
We'd rather not have users write wrappers by hand. So maybe we can explore generating them with FFIgen.
Some example uses of the APIs can be found in this abandoned CL: https://dart-review.googlesource.com/c/sdk/+/240847
Possible way of configuring wrappers
And we should probably generate a return type that is a tuple with the potential error and the normal return value.
The text was updated successfully, but these errors were encountered: