
线程
虾虾林
这个作者很懒,什么都没留下…
展开
-
线程
#include <stdlib.h> #include <stdio.h> #include <pthread.h> //thread #include <unistd.h> //syscall #include <sys/syscall.h> #include <sys/prctl.h> //prctl ...原创 2018-10-09 10:31:15 · 129 阅读 · 0 评论 -
线程2
#define TASK_OK 0 #define TASK_ERROR -1 int ms_task_set_name(const char* name); #define TASK_HANDLE pthread_t int ms_task_create(TASK_HANDLE *handle, void *(*func)(void *), void *arg);//detached int ...原创 2018-10-30 13:38:29 · 186 阅读 · 0 评论