创建线程:pthread_creat() 函数介绍_pthread_create(&reboot_pthread, null, reboot_threa-CSDN博客

网站介绍:文章浏览阅读289次。创建线程:pthread_creat() 函数介绍语法 :int pthread_creat(pthread_t *thread, const pthread_attr_t *attr, void *(*thread_routine)(void *), void *arg)参数介绍:*pthread_t thread: pthread_t 表示线程的数据类型,实际上是void * 类型。_pthread_create(&reboot_pthread, null, reboot_thread, null);