简单写一下android 对线程 的c++封装~~~其实API已经写得很清楚了~~
封装 的文件 :/frameworks/base/include/utils/threads.h
这里不讨论具体实现,具体实现是和系统 相关联的~~首先Anroid提供了几个与直接创建线程的函数:
inline bool createThreadEtc(thread_func_t entryFunction,
void *userData,
const char* threadName = \"android:unnamed_thread\",
int32_t threadPriority = PRIORITY_DEFAULT,
size_t threadStackSize = 0,
thread_id_t *threadId = 0)
inline thread_id_t getThreadId()
本文地址:https://www.stayed.cn/item/3338
转载请注明出处。
本站部分内容来源于网络,如侵犯到您的权益,请 联系我