Symbian3/SDK/Source/GUID-A4799558-AF8C-5E97-9B03-7D1C04FEC243.dita
changeset 8 ae94777fff8f
parent 7 51a74ef9ed63
child 13 48780e181b38
equal deleted inserted replaced
7:51a74ef9ed63 8:ae94777fff8f
    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_d0e234496_href.png" placement="inline"/>
    40 <image href="GUID-5BABDDEC-1D81-5847-9ADB-65DF8E404BFA_d0e230759_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"