The Linux Programming Interface: a linux and unix system Programming Handbook
THREADS: THREAD SAFETY AND PER-THREAD STORAGE
tải về
6.93 Mb.
Chế độ xem pdf
trang
24/806
Chuyển đổi dữ liệu
08.07.2022
Kích
6.93 Mb.
#52607
1
...
20
21
22
23
24
25
26
27
...
806
The Linux Programming Interface
31
THREADS: THREAD
SAFETY AND PER-THREAD STORAGE
655
31.1
Thread Safety (and Reentrancy Revisited) ..................................................................... 655
31.2
One-Time Initialization ............................................................................................... 658
31.3
Thread-Specific Data.................................................................................................. 659
31.3.1
Thread-Specific Data from the Library Function’s Perspective ...................... 660
31.3.2
Overview of the Thread-Specific Data API ................................................ 660
31.3.3
Details of the Thread-Specific Data API .................................................... 661
31.3.4
Employing the Thread-Specific Data API .................................................. 663
31.3.5
Thread-Specific Data Implementation Limits .............................................. 668
31.4
Thread-Local Storage ................................................................................................. 668
31.5
Summary.................................................................................................................. 669
31.6
Exercises .................................................................................................................. 670
32
THREADS: THREAD CANCELLATION
671
32.1
Canceling a Thread................................................................................................... 671
32.2
Cancellation State and Type ....................................................................................... 672
32.3
Cancellation Points .................................................................................................... 673
32.4
Testing for Thread Cancellation................................................................................... 675
32.5
Cleanup Handlers ..................................................................................................... 676
32.6
Asynchronous Cancelability........................................................................................ 680
32.7
Summary.................................................................................................................. 680
tải về
6.93 Mb.
Chia sẻ với bạn bè của bạn:
1
...
20
21
22
23
24
25
26
27
...
806
Cơ sở dữ liệu được bảo vệ bởi bản quyền ©hocday.com 2024
được sử dụng cho việc quản lý
Quê hương
BÁO CÁO
Tài liệu