ricky_pc
全部博文(108)
执行程序Error(1)
Error(1)
访问数据库(3)
调试(1)
多线程编程(4)
基础(4)
网络相关函数(1)
Socket编程(20)
Linux库函数(5)
思想/技巧(2)
C/C++(0)
Mysql(1)
QT(1)
ARM概述(2)
技术论坛(1)
开发产品(1)
madplay移植(0)
BootLoader(2)
JFFS2文件系统(1)
完全使用Linux(0)
Shell(3)
Linux命令(12)
Linux Setting(3)
Linux学习经验(2)
中文支持&国际化(12)
Linux Applicatio(2)
NFS(1)
Linux推荐网页及(1)
FTP(3)
Server(0)
Linux Install(3)
2011年(33)
2010年(75)
qxhgd
Tiantian
浪花小雨
Phyllis6
liopen88
it123455
mwjx
li112156
asdmusic
gumuzhiy
分类: C/C++
2010-12-22 13:07:42
#include <sched.h> int __clone(int (*fn)(void *fnarg), void *child_stack, int flags, void *arg);
#include <pthread.h> int pthread_create(pthread_t *thread, pthread_attr_t *attr, void *(*start_routine)(void *), void *arg);
#include <pthread.h> void pthread_exit(void *retval);
#include <pthread.h> int pthread_join(pthread_t th, void **thread_return);
#include <pthread.h> int pthread_cancel(pthread_t thread); int pthread_setcancelstate(int state, int *oldstate); int pthread_setcanceltype(int type, int *oldtype); void pthread_testcancel(void);
#include <pthread.h> void pthread_cleanup_push(void (*routine), (void *), void *arg); void pthread_cleanup_pop(int execute); void pthread_cleanup_push_defer_np(void (*routine), (void *), void *arg); void pthread_cleanup_pop_restore_np(int execute);
#include <pthread.h> int pthread_mutex_init(pthread_mutex_t *mutex, const pthread_mutex_attr_t *mutexattr); int pthread_mutex_lock(pthread_mutex_t *mutex); int pthread_mutex_trylock(pthread_mutex_t *mutex); int pthread_mutex_unlock(pthread_mutex_t *mutex); int pthread_mutex_destroy(pthread_mutex_t *mutex);
#include <pthead.h> pthread_cond_t cond = pthread_cond_initializer; int pthread_cond_init(pthread_cond_t *cond, pthread_condattr_t *cond_attr); int pthread_cond_signal(pthread_cond_t *cond); int pthread_cond_broadcast(pthread_cond_t *cond); int pthread_cond_wait(pthread_cond_t *cond, pthread_mutex_t *mutex); int pthread_cond_timedwait(pthread_cond_t *cond, pthread_mutex_t *mutex, const struct timespec *abstime); int pthread_cond_destroy(pthread_cond_t *cond);
上一篇:MySQL C 语言应用程序接口开发教程(2)
下一篇:他山之石
登录 注册