Hmm, potentially relevant commit about portability of this:

https://github.com/hrydgard/native/commit/56a1fb627839124a21260c40a5517b27de289b6a

Actually, I wonder if that class (PrioritizedWorkQueue) could be usable (with `workThread` moved to a member or something...)

-[Unknown]