2021
03-30
03-30
Android nativePollOnce函数解析
nativePollOnce的实现函数是android_os_MessageQueue_nativePollOnce,代码如下:android_os_MessageQueue.cppstaticvoidandroid_os_MessageQueue_nativePollOnce(JNIEnv*env,jobjectobj,jintptr,jinttimeoutMillis)NativeMessageQueue*nativeMessageQueue=reinterpret_cast<NativeMessageQueue*>(ptr);//取出NativeMessageQueue对象,并调用它的pollOncenativeMessageQueue->pollOnce(timeoutMil...
继续阅读 >