12 <concept id="GUID-9BFF0271-F5C3-45B6-AD4D-9179107F300A" xml:lang="en"><title>Open |
12 <concept id="GUID-9BFF0271-F5C3-45B6-AD4D-9179107F300A" xml:lang="en"><title>Open |
13 C Producer Consumer Example</title><prolog><metadata><keywords/></metadata></prolog><conbody> |
13 C Producer Consumer Example</title><prolog><metadata><keywords/></metadata></prolog><conbody> |
14 <p>OpenCProducerConsumerEx is a hybrid application that depicts solution for |
14 <p>OpenCProducerConsumerEx is a hybrid application that depicts solution for |
15 producer consumer problem using Open C. This application uses main() as an |
15 producer consumer problem using Open C. This application uses main() as an |
16 entry point for the application. It uses <codeph>libc</codeph> and <codeph>libpthread</codeph> </p> |
16 entry point for the application. It uses <codeph>libc</codeph> and <codeph>libpthread</codeph> </p> |
17 <section id="GUID-026FD8D6-6C4A-5958-B289-775D4AE1E756-GENID-1-10-1-12-1-1-5-1-3-1-11-1-14-1-2-2"><title>Download</title> <p>Click |
17 <section id="GUID-026FD8D6-6C4A-5958-B289-775D4AE1E756-GENID-1-12-1-13-1-1-5-1-3-1-11-1-13-1-2-2"><title>Download</title> <p>Click |
18 on the following link to download the example: <xref href="guid-6013a680-57f9-415b-8851-c4fa63356636/zips/guid-b9259541-c444-400a-8f6e-8daaa5381a79.zip" scope="external">opencproducerconsumerex.zip</xref></p><p>Click: <xref href="guid-6013a680-57f9-415b-8851-c4fa63356636/guid-b9259541-c444-400a-8f6e-8daaa5381a79.html" scope="peer">browse</xref> to view the example code. </p> </section> |
18 on the following link to download the example: <xref href="guid-6013a680-57f9-415b-8851-c4fa63356636/zips/guid-b9259541-c444-400a-8f6e-8daaa5381a79.zip" scope="external">opencproducerconsumerex.zip</xref></p><p>Click: <xref href="guid-6013a680-57f9-415b-8851-c4fa63356636/guid-b9259541-c444-400a-8f6e-8daaa5381a79.html" scope="peer">browse</xref> to view the example code. </p> </section> |
19 <section id="GUID-7E7C4564-B10E-41F9-8A9D-D8A6C5E9C51C-GENID-1-10-1-12-1-1-5-1-3-1-11-1-14-1-2-3"><title>Design and |
19 <section id="GUID-7E7C4564-B10E-41F9-8A9D-D8A6C5E9C51C-GENID-1-12-1-13-1-1-5-1-3-1-11-1-13-1-2-3"><title>Design and |
20 Implementation</title> <p>The following sections provide information about |
20 Implementation</title> <p>The following sections provide information about |
21 the implementation of the example. </p> <p><b>Capabilities</b> </p> The program |
21 the implementation of the example. </p> <p><b>Capabilities</b> </p> The program |
22 capability is defined in: <filepath>ProducerConsumer.mmp</filepath> (EXE - |
22 capability is defined in: <filepath>ProducerConsumer.mmp</filepath> (EXE - |
23 application):<codeph> CAPABILITY NONE</codeph>. <p><b>Implementation details |
23 application):<codeph> CAPABILITY NONE</codeph>. <p><b>Implementation details |
24 of EXE</b> </p>This is a simple console based application. Main thread of |
24 of EXE</b> </p>This is a simple console based application. Main thread of |
42 emulator and in the device. </p><p><b>API Usage</b></p><p><codeph>string APIs</codeph> </p><p><codeph>IPC |
42 emulator and in the device. </p><p><b>API Usage</b></p><p><codeph>string APIs</codeph> </p><p><codeph>IPC |
43 APIs (message queue and semaphore)</codeph> </p><p> <codeph>Threading APIs |
43 APIs (message queue and semaphore)</codeph> </p><p> <codeph>Threading APIs |
44 (from pthread)</codeph> </p><p><codeph>console I/O APIs</codeph> </p><p><codeph>File |
44 (from pthread)</codeph> </p><p><codeph>console I/O APIs</codeph> </p><p><codeph>File |
45 APIs of Symbian platform</codeph></p><p> <codeph>Threading APIs of Symbian |
45 APIs of Symbian platform</codeph></p><p> <codeph>Threading APIs of Symbian |
46 platform</codeph></p></section> |
46 platform</codeph></p></section> |
47 <section id="GUID-67A72761-1D92-46D1-B1C9-7455978BDE4E-GENID-1-10-1-12-1-1-5-1-3-1-11-1-14-1-2-4"><title>Building and |
47 <section id="GUID-67A72761-1D92-46D1-B1C9-7455978BDE4E-GENID-1-12-1-13-1-1-5-1-3-1-11-1-13-1-2-4"><title>Building and |
48 Using</title> To build the OpenCProducerConsumerEx application, go to the |
48 Using</title> To build the OpenCProducerConsumerEx application, go to the |
49 OpenCProducerConsumerEx\group directory and build the application. The definition |
49 OpenCProducerConsumerEx\group directory and build the application. The definition |
50 for the whole application can be found in the<filepath> bld.inf</filepath>in |
50 for the whole application can be found in the<filepath> bld.inf</filepath>in |
51 the group subdirectory of the applications main directory. <p>The application |
51 the group subdirectory of the applications main directory. <p>The application |
52 is simple console based application. It has its own default icon and can be |
52 is simple console based application. It has its own default icon and can be |