获取线程特定数据 ..............................................................................................................................31
获取线程标识符 ..................................................................................................................................35
比较线程 ID ..........................................................................................................................................36
初始化线程 ...........................................................................................................................................36
停止执行线程 ......................................................................................................................................37
设置线程的优先级 ..............................................................................................................................38
获取线程的优先级 ..............................................................................................................................39
向线程发送信号 ..................................................................................................................................40
访问调用线程的信号掩码 .................................................................................................................41
安全地 Fork ..........................................................................................................................................41
终止线程 ...............................................................................................................................................42
结束 ........................................................................................................................................................42
取消线程 ...............................................................................................................................................43
取消线程 ...............................................................................................................................................44
启用或禁用取消功能 .........................................................................................................................45
设置取消类型 ......................................................................................................................................46
创建取消点 ...........................................................................................................................................46
将处理程序推送到栈上 .....................................................................................................................47
从栈中弹出处理程序 .........................................................................................................................47
3 线程属性 .......................................................................................................................................................49
属性对象 .......................................................................................................................................................49
初始化属性 ...........................................................................................................................................50
销毁属性 ...............................................................................................................................................51
设置分离状态 ......................................................................................................................................52
获取分离状态 ......................................................................................................................................53
设置栈溢出保护区大小 .....................................................................................................................54
获取栈溢出保护区大小 .....................................................................................................................55
设置范围 ...............................................................................................................................................55
获取范围 ...............................................................................................................................................57
设置线程并行级别 ..............................................................................................................................57
获取线程并行级别 ..............................................................................................................................58
设置调度策略 ......................................................................................................................................58
获取调度策略 ......................................................................................................................................59
设置继承的调度策略 .........................................................................................................................60
获取继承的调度策略 .........................................................................................................................61
目录
多线程编程指南 • 2006 年 10 月4