36 program periodically tries to subtract a random value between 1 and 10 from |
36 program periodically tries to subtract a random value between 1 and 10 from |
37 the global shared memory chunk. If, having subtracted a value, it finds that |
37 the global shared memory chunk. If, having subtracted a value, it finds that |
38 the value of the chunk is less than <codeph>KLowerThreshold</codeph>, it waits |
38 the value of the chunk is less than <codeph>KLowerThreshold</codeph>, it waits |
39 for a signal from the condition variable before subtracting another value. </p> <p><b>Design |
39 for a signal from the condition variable before subtracting another value. </p> <p><b>Design |
40 and implementation</b> </p> <fig id="GUID-1FAFB189-D2E4-5A05-8D8B-B3F7D28467FC"> |
40 and implementation</b> </p> <fig id="GUID-1FAFB189-D2E4-5A05-8D8B-B3F7D28467FC"> |
41 <image href="GUID-857A523E-E660-5AFA-98B1-3A5440A8372F_d0e254026_href.jpg" placement="inline"/> |
41 <image href="GUID-857A523E-E660-5AFA-98B1-3A5440A8372F_d0e250294_href.jpg" placement="inline"/> |
42 </fig> <p><b>Build</b> </p> <p><xref href="GUID-3100800B-B2F7-50EF-BD4C-3C345ECCB2A5.dita">The |
42 </fig> <p><b>Build</b> </p> <p><xref href="GUID-3100800B-B2F7-50EF-BD4C-3C345ECCB2A5.dita">The |
43 Symbian build process</xref> describes how to build this example. The ConditionVariable |
43 Symbian build process</xref> describes how to build this example. The ConditionVariable |
44 example builds the following binary files in the standard location (<filepath>\epoc32\release\winscw\ |
44 example builds the following binary files in the standard location (<filepath>\epoc32\release\winscw\ |
45 <build_variant></filepath>) for Carbide.c++. </p> <ul> |
45 <build_variant></filepath>) for Carbide.c++. </p> <ul> |
46 <li id="GUID-A699F4AF-3A5F-5C24-83CB-1762348AA1D2"><p> <b>adder.exe:</b> Demonstrates |
46 <li id="GUID-A699F4AF-3A5F-5C24-83CB-1762348AA1D2"><p> <b>adder.exe:</b> Demonstrates |
82 removes a token from the queue when it is called. It calls the <codeph>CQueue::Remove()</codeph> function |
82 removes a token from the queue when it is called. It calls the <codeph>CQueue::Remove()</codeph> function |
83 on the shared <codeph>CQueue</codeph> object. </p> <p>For more information, |
83 on the shared <codeph>CQueue</codeph> object. </p> <p>For more information, |
84 refer to <xref href="http://support.entegrity.com/private/doclib/docs/osfhtm/develop/appdev/Appde179.htm" scope="external">Condition Variables</xref>. </p> <p> <note> Symbian |
84 refer to <xref href="http://support.entegrity.com/private/doclib/docs/osfhtm/develop/appdev/Appde179.htm" scope="external">Condition Variables</xref>. </p> <p> <note> Symbian |
85 is not responsible for the content of external websites.</note> </p> <p><b>Design |
85 is not responsible for the content of external websites.</note> </p> <p><b>Design |
86 and implementation</b> </p> <fig id="GUID-CA344322-0982-59C3-B93A-7A1F175728F3"> |
86 and implementation</b> </p> <fig id="GUID-CA344322-0982-59C3-B93A-7A1F175728F3"> |
87 <image href="GUID-CAB30473-7829-5F2E-9F45-A2344DEDFC35_d0e254228_href.jpg" placement="inline"/> |
87 <image href="GUID-CAB30473-7829-5F2E-9F45-A2344DEDFC35_d0e250496_href.jpg" placement="inline"/> |
88 </fig> <p><b>Build</b> </p> <p><xref href="GUID-3100800B-B2F7-50EF-BD4C-3C345ECCB2A5.dita">The |
88 </fig> <p><b>Build</b> </p> <p><xref href="GUID-3100800B-B2F7-50EF-BD4C-3C345ECCB2A5.dita">The |
89 Symbian build process</xref> describes how to build this example. The ConditionVariable |
89 Symbian build process</xref> describes how to build this example. The ConditionVariable |
90 example builds the following binary files in the standard location (<filepath>\epoc32\release\winscw\ |
90 example builds the following binary files in the standard location (<filepath>\epoc32\release\winscw\ |
91 <build_variant></filepath>) for Carbide.c++. </p> <p> <filepath>condvarlocal.exe</filepath>: |
91 <build_variant></filepath>) for Carbide.c++. </p> <p> <filepath>condvarlocal.exe</filepath>: |
92 Demonstrates the use of the local condition variable. </p> <p><b>How to run |
92 Demonstrates the use of the local condition variable. </p> <p><b>How to run |