3718baa446
To fix encountered tsan race(patchset 3) split Metadata into MetadataEntry as discussed on https://github.com/dart-lang/sdk/issues/60728#event-17760701621 TEST=ci Fixes https://github.com/dart-lang/sdk/issues/60728 Change-Id: I9308d6fb6a9b819221f7fe4668aefb3a578fe8a8 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/430122 Reviewed-by: Liam Appelbe <liama@google.com> Commit-Queue: Alexander Aprelev <aam@google.com>
This is an example that shows how to use NativeCallable.listener to interact
with a multi threaded native API.
The native API is a fake HTTP library with some hard coded requests and responses. To build the dynamic library, run this command:
c++ -shared -fpic lib/fake_http.cc -lstdc++ -o lib/libfake_http.so
On Windows the output library should be lib/fake_http.dll and on Mac it should
be lib/libfake_http.dylib.