Symbian3/PDK/Source/GUID-A4799558-AF8C-5E97-9B03-7D1C04FEC243.dita
changeset 5 f345bda72bc4
parent 3 46218c8b8afa
child 9 59758314f811
equal deleted inserted replaced
4:4816d766a08a 5:f345bda72bc4
    35                           // Duplicate also opens the resulting
    35                           // Duplicate also opens the resulting
    36                           // handle, cs.
    36                           // handle, cs.
    37 ...
    37 ...
    38 </codeblock> <p>The dotted line in the following diagram shows the effect
    38 </codeblock> <p>The dotted line in the following diagram shows the effect
    39 of this:</p> <fig id="GUID-731954F6-D85E-5940-96A4-15AC6E3AA5F5">
    39 of this:</p> <fig id="GUID-731954F6-D85E-5940-96A4-15AC6E3AA5F5">
    40 <image href="GUID-5BABDDEC-1D81-5847-9ADB-65DF8E404BFA_d0e322698_href.png" placement="inline"/>
    40 <image href="GUID-5BABDDEC-1D81-5847-9ADB-65DF8E404BFA_d0e343933_href.png" placement="inline"/>
    41 </fig> <p>Note that for process-relative handles, there is no need to use <codeph>Duplicate()</codeph>;
    41 </fig> <p>Note that for process-relative handles, there is no need to use <codeph>Duplicate()</codeph>;
    42 the handle passed from thread A to thread B can be used directly.</p> </section>
    42 the handle passed from thread A to thread B can be used directly.</p> </section>
    43 <section id="GUID-83BE173E-F73D-46A8-8267-A1055E486FE3"><title>Making specific handles from generic handles</title> <p>There
    43 <section id="GUID-83BE173E-F73D-46A8-8267-A1055E486FE3"><title>Making specific handles from generic handles</title> <p>There
    44 are two types of generic handle, one for threads and one for processes, both
    44 are two types of generic handle, one for threads and one for processes, both
    45 of which are created using the default constructor of the appropriate handle.</p> <codeblock id="GUID-F42A0EEB-3142-527A-9BD4-724B9969CF5D" xml:space="preserve">RThread  thisThread;  // Generic handle meaning "the current thread"
    45 of which are created using the default constructor of the appropriate handle.</p> <codeblock id="GUID-F42A0EEB-3142-527A-9BD4-724B9969CF5D" xml:space="preserve">RThread  thisThread;  // Generic handle meaning "the current thread"