HP OpenVMS Systems Documentation
Guide to the POSIX Threads Library
Previous
Contents
Index
Appendix E
Appendix E
Migrating from the d4 Interface
E.1
Overview
E.2
Error Status and Function Returns
E.3
Replaced or Renamed Routines
E.4
Routines with No Changes to Syntax
E.5
Routines with Prototype or Syntax Changes
E.6
New Routines
Glossary
Glossary
Glossary
Index
Index
Examples
2-1
pthread Cancel
5-1
Raising an Exception
5-2
Catching an Exception Using CATCH
5-3
Catching an Exception Using CATCH and CATCH_ALL
5-4
Defining Epilogue Actions Using FINALLY
5-5
Defining an Exception Scope
5-6
Raising an Exception
5-7
Catching a Specific Exception Using CATCH
5-8
Catching an Unspecified Exception Using CATCH_ALL
5-9
Defining Epilogue Actions Using FINALLY
5-10
Setting an Error Status in an Exception Object
5-11
Obtaining the Error Status Value from a Status Exception Object
5-12
Comparing Two Exception Objects
5-13
Incorrect Placement of Statements That Might Raise an Exception
5-14
Correct Placement of Statements That Might Raise an Exception
5-15
Use of the Volatile Type Qualifier Within an Exception Scope
6-1
C Program Example (Prime Number Search)
6-2
C Program Example (Asynchronous User Interface)
Figures
1-1
Single-Threaded Process
1-2
Multithreaded Process
1-3
Thread State Transitions
1-4
Work Crew Model of Thread Operation
1-5
Pipelining Model of Thread Operation
2-1
Flow with FIFO Scheduling
2-2
Flow with RR Scheduling
2-3
Flow with Default Scheduling
2-4
Only One Thread Can Lock a Mutex
2-5
Thread A Waits on Condition Ready
2-6
Thread B Signals Condition Ready
2-7
Thread A Wakes and Proceeds
4-1
Read-Write Lock Behavior
Tables
1-1
pthread Routines Summary
1-2
tis Routines Summary
2-1
Support for Thread Contention Scope
3-1
Default and Optional Granularities
5-1
Names of Exception Objects Defined by the Threads Library
A-1
Header Files
A-2
Tru64 UNIX Shared Libraries for Multithreaded Programs
A-3
Signals Reported as Exceptions
B-1
Header Files
B-2
Threads Library Images
B-3
Condition Values
B-4
Results of Keyword Arguments to /THREADS_ENABLE Qualifier
B-5
Return Values from$GETJPI System Service
C-1
PTHREAD_CONFIG Settings
D-1
Corresponding cma and pthread Routines
E-1
pthread Routines That Replace d4 Routines
E-2
d4 Routines With Syntax Changes as pthread Routines
E-3
d4 Routines Whose pthread Counterpart Uses Standard Datatypes
Previous
Next
Contents
Index