How can I retrieve input from multiple Android sensors (rotation vector, accelerometer, etc) concurrently in c++?

  accelerometer, android, android-ndk, c++, sensors

I am currently writing an Android app purely in c++ because of its performance advantage and I have been unable to find a way to record sensor input from multiple sensors concurrently. I want to keep track of the device’s orientation in addition to the direction and magnitude of the accelerometer input. Is it possible to do this in c++? Could I just create a separate thread and event queue for each sensor?

I have searched for hours and haven’t found any examples of this so any useful insights would be highly appreciated!

Source: Windows Questions C++