OSF DCE Application Development Guide--Core Components

OSF DCE Application Development Guide—Core Components
8.2.1 Types of Signals ............... 8-5
8.2.2 DCE Threads Signal Handling ........... 8-7
8.2.3 Alternatives to Using Signals ........... 8-8
8.3 Nonthreaded Libraries ................ 8-9
8.3.1 Working with Nonthreaded Software ......... 8-9
8.3.2 Making Nonthreaded Code Thread-Reentrant ...... 8-10
8.4 Avoiding Nonreentrant Software ............. 8-10
8.4.1 Global Lock ................ 8-10
8.4.2 Thread-Specific Storage ............. 8-11
8.5 Avoiding Priority Inversion .............. 8-11
8.6 Using Synchronization Objects ............. 8-11
8.6.1 Race Conditions ............... 8-12
8.6.2 Deadlocks ................. 8-12
8.7 Signaling a Condition Variable ............. 8-13
Chapter 9. Using the DCE Threads Exception-Returning Interface ........ 9-1
9.1 Syntax for C ................... 9-1
9.2 Invoking the Exception-Returning Interface ......... 9-3
9.3 Operations on Exceptions ............... 9-4
9.3.1 Declaring and Initializing an Exception Object ...... 9-4
9.3.2 Raising an Exception .............. 9-4
9.3.3 Defining a Region of Code over Which Exceptions Are
Caught .................. 9-5
9.3.4 Catching a Particular Exception or All Exceptions ..... 9-5
9.3.5 Defining Epilogue Actions for a Block ........ 9-6
9.3.6 Importing a System-Defined Error Status into the Program as an
Exception ................. 9-6
9.4 Rules and Conventions for Modular Use of Exceptions ...... 9-7
9.5 DCE Threads Exceptions and Definitions .......... 9-8
Chapter 10. DCE Threads Example .................. 10-1
10.1 Details of Program Logic and Implementation ......... 10-1
10.2 DCE Threads Example Body .............. 10-3
Part 3. DCE Remote Procedure Call
Chapter 11. Developing a Simple RPC Application ............. 11-1
11.1 The Remote Procedure Call Model ............ 11-1
11.1.1 RPC Application Code ............. 11-4
11.1.2 Stubs .................. 11-5
11.1.3 The RPC Runtime ............... 11-6
11.1.4 RPC Application Components That Work Together ..... 11-6
11.1.5 Overview of DCE RPC Development Tasks ....... 11-8
11.2 Writing an Interface Definition ............. 11-9
11.2.1 RPC Interfaces That Represent Services ........11-11
11.2.2 Generating an Interface UUID ...........11-12
11.2.3 Naming the Interface ..............11-13
vi Tandem Computers Incorporated 124245