190e05e360
Locally, I witnessed very slow tests. Profiling with Visual VM revealed a lot of time spent in `wait`. Digging in, we were trying to be clever, with a `wait(1000)/notify` mechanism. However, there were never multiple threads in play, so the waiter wasn't waiting when `notify` was invoked. That means we always timed out. I think this never worked and using bare `wait()` would have revealed that. Anyway, `CountDownLatch` maintains the one bit of state (was I notified) and generalizes smoothly to when we have threads. |
||
---|---|---|
.. | ||
Mentat | ||
README.md |
Android Mentat SDK
Exposes Mentat functionality to Android applications via the foreign function interface provided by mentat_ffi
.
Note that libmentat_ffi.so
binaries are symlinked. Use the cross-compilation script to build them. Windows users: apologies if you're on FAT; symlinks are supported on NTFS (on Vista and later).
- See sample projects for how one might use the SDK.
- See documentation within the
mentat_ffi
crate for development flow.