专注于音视频处理及流媒体开发!

罗索实验室

当前位置:主页 > TAG标签 > gettid
  • gettid()获取线程ID测试程序 日期:2016-12-14 16:40:48 点击:108 好评:0

    1、第一种方法 #includestdio.h #includestdlib.h #includeunistd.h #includepthread.h #includesys/syscall.h #definegettid()syscall(__NR_gettid) const int M=3; pthread_thThread[M]; int threadId[M]; void *hello( void *ptr){ int id=*( int *)(ptr); pri...

    共1页/1条
推荐内容