Issue
Under Android NDK, is there a sleep() function which sleeps for X miliseconds, but do not block the event loop?
We are writing API tests to work on Mac, Windows, and Android. So far, we have implemented some sort of sleep() for Mac and Windows, but we are all new to Android NDK and need some help there. Thank you in advance.
Solution
So you are looking for a sleep()
method that does sleep for a certain amount of time but does not block the event loop? This sounds odd to me. I think you might want to use a new thread instead and call the sleep() method there - without having to use any JNI.
Answered By - mreichelt
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.