mentat/sdks/android
Nick Alexander 190e05e360 [sdks/android] Part 2: Replace Expectation/wait/notify with CountDownLatch.
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.
2018-07-27 10:43:53 -07:00
..
Mentat [sdks/android] Part 2: Replace Expectation/wait/notify with CountDownLatch. 2018-07-27 10:43:53 -07:00
README.md Android SDK basic sample project and symlinked SDK Mentat binaries (#729) r=nalexander 2018-06-01 12:44:31 -07:00

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).