1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
2 <html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> |
2 <html xmlns="http://www.w3.org/1999/xhtml"> |
3 <title>TB10.1 Example Applications: CSmpExample Class Reference</title> |
3 <head> |
4 <link href="doxygen.css" rel="stylesheet" type="text/css"> |
4 <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> |
5 <link href="tabs.css" rel="stylesheet" type="text/css"> |
5 <title>TB9.2 Example Applications: CSmpExample Class Reference</title> |
6 </head><body> |
6 <link href="tabs.css" rel="stylesheet" type="text/css"/> |
7 <!-- Generated by Doxygen 1.5.3 --> |
7 <link href="doxygen.css" rel="stylesheet" type="text/css"/> |
|
8 </head> |
|
9 <body> |
|
10 <!-- Generated by Doxygen 1.6.2 --> |
|
11 <div class="contents"> |
8 <h1>CSmpExample Class Reference</h1><!-- doxytag: class="CSmpExample" --> |
12 <h1>CSmpExample Class Reference</h1><!-- doxytag: class="CSmpExample" --> |
9 <p> |
13 <p><a href="class_c_smp_example-members.html">List of all members.</a></p> |
10 <a href="class_c_smp_example-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0"> |
14 <table border="0" cellpadding="0" cellspacing="0"> |
11 <tr><td></td></tr> |
15 <tr><td colspan="2"><h2>Public Member Functions</h2></td></tr> |
12 <tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr> |
16 <tr><td class="memItemLeft" align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_smp_example.html#a4f902855860346e1529c8aad989100f0">~CSmpExample</a> ()</td></tr> |
13 <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_smp_example.html#4f902855860346e1529c8aad989100f0">~CSmpExample</a> ()</td></tr> |
17 <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_smp_example.html#a6ed7d09453967159b3cb9cb8c271aeab">CreateDatabaseL</a> (const TDesC &aDbName)</td></tr> |
14 |
18 <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_smp_example.html#a8eaf4cbbf9c4b69d0854140963a22e51">PrintMessage</a> ()</td></tr> |
15 <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_smp_example.html#6ed7d09453967159b3cb9cb8c271aeab">CreateDatabaseL</a> (const TDesC &aDbName)</td></tr> |
19 <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_smp_example.html#afdb87a66a6b0a41cbea465aa2495aa1c">StartThreads</a> ()</td></tr> |
16 |
20 <tr><td colspan="2"><h2>Static Public Member Functions</h2></td></tr> |
17 <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_smp_example.html#8eaf4cbbf9c4b69d0854140963a22e51">PrintMessage</a> ()</td></tr> |
21 <tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="class_c_smp_example.html">CSmpExample</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_smp_example.html#aaf2dab332a98167a1dde6309732a2460">NewL</a> ()</td></tr> |
18 |
22 <tr><td class="memItemLeft" align="right" valign="top">static TInt </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_smp_example.html#ac56a561b32603f3d9fccb186b90ee28b">ReadThreadFuncL</a> (TAny *aPtr)</td></tr> |
19 <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_smp_example.html#fdb87a66a6b0a41cbea465aa2495aa1c">StartThreads</a> ()</td></tr> |
23 <tr><td class="memItemLeft" align="right" valign="top">static TInt </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_smp_example.html#a3a99e9be00e57c1d8489de6f62d00a2b">WriteThread1FuncL</a> (TAny *aPtr)</td></tr> |
20 |
24 <tr><td class="memItemLeft" align="right" valign="top">static TInt </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_smp_example.html#a41ccf5be445f2ad57cee4fa93b8830c6">WriteThread2FuncL</a> (TAny *aPtr)</td></tr> |
21 <tr><td colspan="2"><br><h2>Static Public Member Functions</h2></td></tr> |
25 <tr><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_smp_example.html#a70e2ac4866c0bea841d38203ae2f6194">ReadBothDatabasesL</a> ()</td></tr> |
22 <tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="class_c_smp_example.html">CSmpExample</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_smp_example.html#af2dab332a98167a1dde6309732a2460">NewL</a> ()</td></tr> |
26 <tr><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_smp_example.html#a3b589411b99d71c460442290516e04ec">ReadDatabaseL</a> (const TDesC &aDbName, CConsoleBase &console)</td></tr> |
23 |
27 <tr><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_smp_example.html#a26abdb02599626bb596e73e90a145037">WriteDbFuncL</a> (const TDesC &aDbName, TInt aNum)</td></tr> |
24 <tr><td class="memItemLeft" nowrap align="right" valign="top">static TInt </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_smp_example.html#c56a561b32603f3d9fccb186b90ee28b">ReadThreadFuncL</a> (TAny *aPtr)</td></tr> |
28 <tr><td colspan="2"><h2>Protected Member Functions</h2></td></tr> |
25 |
29 <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_smp_example.html#aa9bbdb0f3c1cb00236cf6eedc2fe0840">ConstructL</a> ()</td></tr> |
26 <tr><td class="memItemLeft" nowrap align="right" valign="top">static TInt </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_smp_example.html#3a99e9be00e57c1d8489de6f62d00a2b">WriteThread1FuncL</a> (TAny *aPtr)</td></tr> |
|
27 |
|
28 <tr><td class="memItemLeft" nowrap align="right" valign="top">static TInt </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_smp_example.html#41ccf5be445f2ad57cee4fa93b8830c6">WriteThread2FuncL</a> (TAny *aPtr)</td></tr> |
|
29 |
|
30 <tr><td class="memItemLeft" nowrap align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_smp_example.html#70e2ac4866c0bea841d38203ae2f6194">ReadBothDatabasesL</a> ()</td></tr> |
|
31 |
|
32 <tr><td class="memItemLeft" nowrap align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_smp_example.html#3b589411b99d71c460442290516e04ec">ReadDatabaseL</a> (const TDesC &aDbName, CConsoleBase &<a class="el" href="localeupdate_8cpp.html#d789d40251baeb2f60e118de4856583d">console</a>)</td></tr> |
|
33 |
|
34 <tr><td class="memItemLeft" nowrap align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_smp_example.html#26abdb02599626bb596e73e90a145037">WriteDbFuncL</a> (const TDesC &aDbName, TInt aNum)</td></tr> |
|
35 |
|
36 <tr><td colspan="2"><br><h2>Protected Member Functions</h2></td></tr> |
|
37 <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_smp_example.html#a9bbdb0f3c1cb00236cf6eedc2fe0840">ConstructL</a> ()</td></tr> |
|
38 |
|
39 </table> |
30 </table> |
40 <hr><a name="_details"></a><h2>Detailed Description</h2> |
31 <hr/><a name="_details"></a><h2>Detailed Description</h2> |
41 This class creates three threads to demonstrate multithreading in a unicore and a SMP environment. |
32 <p>This class creates three threads to demonstrate multithreading in a unicore and a SMP environment. </p> |
42 <p>Definition at line <a class="el" href="_smp_example_8h-source.html#l00028">28</a> of file <a class="el" href="_smp_example_8h-source.html">SmpExample.h</a>.</p> |
33 |
43 <hr><h2>Constructor & Destructor Documentation</h2> |
34 <p>Definition at line <a class="el" href="_smp_example_8h_source.html#l00028">28</a> of file <a class="el" href="_smp_example_8h_source.html">SmpExample.h</a>.</p> |
44 <a class="anchor" name="4f902855860346e1529c8aad989100f0"></a><!-- doxytag: member="CSmpExample::~CSmpExample" ref="4f902855860346e1529c8aad989100f0" args="()" --> |
35 <hr/><h2>Constructor & Destructor Documentation</h2> |
45 <div class="memitem"> |
36 <a class="anchor" id="a4f902855860346e1529c8aad989100f0"></a><!-- doxytag: member="CSmpExample::~CSmpExample" ref="a4f902855860346e1529c8aad989100f0" args="()" --> |
46 <div class="memproto"> |
37 <div class="memitem"> |
47 <table class="memname"> |
38 <div class="memproto"> |
48 <tr> |
39 <table class="memname"> |
49 <td class="memname">CSmpExample::~CSmpExample </td> |
40 <tr> |
50 <td>(</td> |
41 <td class="memname">CSmpExample::~CSmpExample </td> |
51 <td class="paramname"> </td> |
42 <td>(</td> |
52 <td> ) </td> |
43 <td class="paramname"></td> |
53 <td width="100%"><code> [virtual]</code></td> |
44 <td> ) </td> |
54 </tr> |
45 <td><code> [virtual]</code></td> |
55 </table> |
46 </tr> |
56 </div> |
47 </table> |
57 <div class="memdoc"> |
48 </div> |
58 |
49 <div class="memdoc"> |
59 <p> |
50 <p>Destructor </p> |
60 Destructor |
51 |
61 <p>Definition at line <a class="el" href="_smp_example_8cpp-source.html#l00022">22</a> of file <a class="el" href="_smp_example_8cpp-source.html">SmpExample.cpp</a>.</p> |
52 <p>Definition at line <a class="el" href="_smp_example_8cpp_source.html#l00022">22</a> of file <a class="el" href="_smp_example_8cpp_source.html">SmpExample.cpp</a>.</p> |
62 |
53 |
63 </div> |
54 </div> |
64 </div><p> |
55 </div> |
65 <hr><h2>Member Function Documentation</h2> |
56 <hr/><h2>Member Function Documentation</h2> |
66 <a class="anchor" name="af2dab332a98167a1dde6309732a2460"></a><!-- doxytag: member="CSmpExample::NewL" ref="af2dab332a98167a1dde6309732a2460" args="()" --> |
57 <a class="anchor" id="aaf2dab332a98167a1dde6309732a2460"></a><!-- doxytag: member="CSmpExample::NewL" ref="aaf2dab332a98167a1dde6309732a2460" args="()" --> |
67 <div class="memitem"> |
58 <div class="memitem"> |
68 <div class="memproto"> |
59 <div class="memproto"> |
69 <table class="memname"> |
60 <table class="memname"> |
70 <tr> |
61 <tr> |
71 <td class="memname"><a class="el" href="class_c_smp_example.html">CSmpExample</a> * CSmpExample::NewL </td> |
62 <td class="memname"><a class="el" href="class_c_smp_example.html">CSmpExample</a> * CSmpExample::NewL </td> |
72 <td>(</td> |
63 <td>(</td> |
73 <td class="paramname"> </td> |
64 <td class="paramname"></td> |
74 <td> ) </td> |
65 <td> ) </td> |
75 <td width="100%"><code> [static]</code></td> |
66 <td><code> [static]</code></td> |
76 </tr> |
67 </tr> |
77 </table> |
68 </table> |
78 </div> |
69 </div> |
79 <div class="memdoc"> |
70 <div class="memdoc"> |
80 |
71 <p><a class="el" href="class_c_smp_example.html#aaf2dab332a98167a1dde6309732a2460">NewL()</a> </p> |
81 <p> |
72 |
82 <a class="el" href="class_c_smp_example.html#af2dab332a98167a1dde6309732a2460">NewL()</a> |
73 <p>Definition at line <a class="el" href="_smp_example_8cpp_source.html#l00033">33</a> of file <a class="el" href="_smp_example_8cpp_source.html">SmpExample.cpp</a>.</p> |
83 <p>Definition at line <a class="el" href="_smp_example_8cpp-source.html#l00033">33</a> of file <a class="el" href="_smp_example_8cpp-source.html">SmpExample.cpp</a>.</p> |
74 |
84 |
75 </div> |
85 </div> |
76 </div> |
86 </div><p> |
77 <a class="anchor" id="a6ed7d09453967159b3cb9cb8c271aeab"></a><!-- doxytag: member="CSmpExample::CreateDatabaseL" ref="a6ed7d09453967159b3cb9cb8c271aeab" args="(const TDesC &aDbName)" --> |
87 <a class="anchor" name="6ed7d09453967159b3cb9cb8c271aeab"></a><!-- doxytag: member="CSmpExample::CreateDatabaseL" ref="6ed7d09453967159b3cb9cb8c271aeab" args="(const TDesC &aDbName)" --> |
78 <div class="memitem"> |
88 <div class="memitem"> |
79 <div class="memproto"> |
89 <div class="memproto"> |
80 <table class="memname"> |
90 <table class="memname"> |
81 <tr> |
91 <tr> |
82 <td class="memname">void CSmpExample::CreateDatabaseL </td> |
92 <td class="memname">void CSmpExample::CreateDatabaseL </td> |
|
93 <td>(</td> |
83 <td>(</td> |
94 <td class="paramtype">const TDesC & </td> |
84 <td class="paramtype">const TDesC & </td> |
95 <td class="paramname"> <em>aDbName</em> </td> |
85 <td class="paramname"> <em>aDbName</em></td> |
96 <td> ) </td> |
86 <td> ) </td> |
97 <td width="100%"></td> |
87 <td></td> |
98 </tr> |
88 </tr> |
99 </table> |
89 </table> |
100 </div> |
90 </div> |
101 <div class="memdoc"> |
91 <div class="memdoc"> |
102 |
92 <p>Creates a named database with the name specified in the parameter, creates a table and adds columns to it. </p> |
103 <p> |
93 |
104 Creates a named database with the name specified in the parameter, creates a table and adds columns to it. |
94 <p>Definition at line <a class="el" href="_smp_example_8cpp_source.html#l00351">351</a> of file <a class="el" href="_smp_example_8cpp_source.html">SmpExample.cpp</a>.</p> |
105 <p>Definition at line <a class="el" href="_smp_example_8cpp-source.html#l00351">351</a> of file <a class="el" href="_smp_example_8cpp-source.html">SmpExample.cpp</a>.</p> |
95 |
106 |
96 </div> |
107 </div> |
97 </div> |
108 </div><p> |
98 <a class="anchor" id="ac56a561b32603f3d9fccb186b90ee28b"></a><!-- doxytag: member="CSmpExample::ReadThreadFuncL" ref="ac56a561b32603f3d9fccb186b90ee28b" args="(TAny *aPtr)" --> |
109 <a class="anchor" name="c56a561b32603f3d9fccb186b90ee28b"></a><!-- doxytag: member="CSmpExample::ReadThreadFuncL" ref="c56a561b32603f3d9fccb186b90ee28b" args="(TAny *aPtr)" --> |
99 <div class="memitem"> |
110 <div class="memitem"> |
100 <div class="memproto"> |
111 <div class="memproto"> |
101 <table class="memname"> |
112 <table class="memname"> |
102 <tr> |
113 <tr> |
103 <td class="memname">TInt CSmpExample::ReadThreadFuncL </td> |
114 <td class="memname">TInt CSmpExample::ReadThreadFuncL </td> |
|
115 <td>(</td> |
104 <td>(</td> |
116 <td class="paramtype">TAny * </td> |
105 <td class="paramtype">TAny * </td> |
117 <td class="paramname"> <em>aPtr</em> </td> |
106 <td class="paramname"> <em>aPtr</em></td> |
118 <td> ) </td> |
107 <td> ) </td> |
119 <td width="100%"><code> [static]</code></td> |
108 <td><code> [static]</code></td> |
120 </tr> |
109 </tr> |
121 </table> |
110 </table> |
122 </div> |
111 </div> |
123 <div class="memdoc"> |
112 <div class="memdoc"> |
124 |
113 <p>This function is called when iReadThread is resumed. It creates a cleanup stack and calls <a class="el" href="class_c_smp_example.html#a70e2ac4866c0bea841d38203ae2f6194">ReadBothDatabasesL()</a> to read both the databases. </p> |
125 <p> |
114 |
126 This function is called when iReadThread is resumed. It creates a cleanup stack and calls <a class="el" href="class_c_smp_example.html#70e2ac4866c0bea841d38203ae2f6194">ReadBothDatabasesL()</a> to read both the databases. |
115 <p>Definition at line <a class="el" href="_smp_example_8cpp_source.html#l00220">220</a> of file <a class="el" href="_smp_example_8cpp_source.html">SmpExample.cpp</a>.</p> |
127 <p>Definition at line <a class="el" href="_smp_example_8cpp-source.html#l00220">220</a> of file <a class="el" href="_smp_example_8cpp-source.html">SmpExample.cpp</a>.</p> |
116 |
128 |
117 </div> |
129 </div> |
118 </div> |
130 </div><p> |
119 <a class="anchor" id="a3a99e9be00e57c1d8489de6f62d00a2b"></a><!-- doxytag: member="CSmpExample::WriteThread1FuncL" ref="a3a99e9be00e57c1d8489de6f62d00a2b" args="(TAny *aPtr)" --> |
131 <a class="anchor" name="3a99e9be00e57c1d8489de6f62d00a2b"></a><!-- doxytag: member="CSmpExample::WriteThread1FuncL" ref="3a99e9be00e57c1d8489de6f62d00a2b" args="(TAny *aPtr)" --> |
120 <div class="memitem"> |
132 <div class="memitem"> |
121 <div class="memproto"> |
133 <div class="memproto"> |
122 <table class="memname"> |
134 <table class="memname"> |
123 <tr> |
135 <tr> |
124 <td class="memname">TInt CSmpExample::WriteThread1FuncL </td> |
136 <td class="memname">TInt CSmpExample::WriteThread1FuncL </td> |
|
137 <td>(</td> |
125 <td>(</td> |
138 <td class="paramtype">TAny * </td> |
126 <td class="paramtype">TAny * </td> |
139 <td class="paramname"> <em>aPtr</em> </td> |
127 <td class="paramname"> <em>aPtr</em></td> |
140 <td> ) </td> |
128 <td> ) </td> |
141 <td width="100%"><code> [static]</code></td> |
129 <td><code> [static]</code></td> |
142 </tr> |
130 </tr> |
143 </table> |
131 </table> |
144 </div> |
132 </div> |
145 <div class="memdoc"> |
133 <div class="memdoc"> |
146 |
134 <p>This function is called when iWriteThread is resumed. It creates a cleanup stack and calls <a class="el" href="class_c_smp_example.html#a26abdb02599626bb596e73e90a145037">WriteDbFuncL()</a> to write integers to KDatabase1. </p> |
147 <p> |
135 |
148 This function is called when iWriteThread is resumed. It creates a cleanup stack and calls <a class="el" href="class_c_smp_example.html#26abdb02599626bb596e73e90a145037">WriteDbFuncL()</a> to write integers to KDatabase1. |
136 <p>Definition at line <a class="el" href="_smp_example_8cpp_source.html#l00324">324</a> of file <a class="el" href="_smp_example_8cpp_source.html">SmpExample.cpp</a>.</p> |
149 <p>Definition at line <a class="el" href="_smp_example_8cpp-source.html#l00324">324</a> of file <a class="el" href="_smp_example_8cpp-source.html">SmpExample.cpp</a>.</p> |
137 |
150 |
138 </div> |
151 </div> |
139 </div> |
152 </div><p> |
140 <a class="anchor" id="a41ccf5be445f2ad57cee4fa93b8830c6"></a><!-- doxytag: member="CSmpExample::WriteThread2FuncL" ref="a41ccf5be445f2ad57cee4fa93b8830c6" args="(TAny *aPtr)" --> |
153 <a class="anchor" name="41ccf5be445f2ad57cee4fa93b8830c6"></a><!-- doxytag: member="CSmpExample::WriteThread2FuncL" ref="41ccf5be445f2ad57cee4fa93b8830c6" args="(TAny *aPtr)" --> |
141 <div class="memitem"> |
154 <div class="memitem"> |
142 <div class="memproto"> |
155 <div class="memproto"> |
143 <table class="memname"> |
156 <table class="memname"> |
144 <tr> |
157 <tr> |
145 <td class="memname">TInt CSmpExample::WriteThread2FuncL </td> |
158 <td class="memname">TInt CSmpExample::WriteThread2FuncL </td> |
|
159 <td>(</td> |
146 <td>(</td> |
160 <td class="paramtype">TAny * </td> |
147 <td class="paramtype">TAny * </td> |
161 <td class="paramname"> <em>aPtr</em> </td> |
148 <td class="paramname"> <em>aPtr</em></td> |
162 <td> ) </td> |
149 <td> ) </td> |
163 <td width="100%"><code> [static]</code></td> |
150 <td><code> [static]</code></td> |
164 </tr> |
151 </tr> |
165 </table> |
152 </table> |
166 </div> |
153 </div> |
167 <div class="memdoc"> |
154 <div class="memdoc"> |
168 |
155 <p>This function is called when iWriteThread is resumed. It creates a cleanup stack and calls <a class="el" href="class_c_smp_example.html#a26abdb02599626bb596e73e90a145037">WriteDbFuncL()</a> to write integers to KDatabase2. </p> |
169 <p> |
156 |
170 This function is called when iWriteThread is resumed. It creates a cleanup stack and calls <a class="el" href="class_c_smp_example.html#26abdb02599626bb596e73e90a145037">WriteDbFuncL()</a> to write integers to KDatabase2. |
157 <p>Definition at line <a class="el" href="_smp_example_8cpp_source.html#l00297">297</a> of file <a class="el" href="_smp_example_8cpp_source.html">SmpExample.cpp</a>.</p> |
171 <p>Definition at line <a class="el" href="_smp_example_8cpp-source.html#l00297">297</a> of file <a class="el" href="_smp_example_8cpp-source.html">SmpExample.cpp</a>.</p> |
158 |
172 |
159 </div> |
173 </div> |
160 </div> |
174 </div><p> |
161 <a class="anchor" id="a70e2ac4866c0bea841d38203ae2f6194"></a><!-- doxytag: member="CSmpExample::ReadBothDatabasesL" ref="a70e2ac4866c0bea841d38203ae2f6194" args="()" --> |
175 <a class="anchor" name="70e2ac4866c0bea841d38203ae2f6194"></a><!-- doxytag: member="CSmpExample::ReadBothDatabasesL" ref="70e2ac4866c0bea841d38203ae2f6194" args="()" --> |
162 <div class="memitem"> |
176 <div class="memitem"> |
163 <div class="memproto"> |
177 <div class="memproto"> |
164 <table class="memname"> |
178 <table class="memname"> |
165 <tr> |
179 <tr> |
166 <td class="memname">void CSmpExample::ReadBothDatabasesL </td> |
180 <td class="memname">void CSmpExample::ReadBothDatabasesL </td> |
167 <td>(</td> |
181 <td>(</td> |
168 <td class="paramname"></td> |
182 <td class="paramname"> </td> |
169 <td> ) </td> |
183 <td> ) </td> |
170 <td><code> [static]</code></td> |
184 <td width="100%"><code> [static]</code></td> |
171 </tr> |
185 </tr> |
172 </table> |
186 </table> |
173 </div> |
187 </div> |
174 <div class="memdoc"> |
188 <div class="memdoc"> |
175 <p>Creates a console, reads the databases and prints output to the console. </p> |
189 |
176 |
190 <p> |
177 <p>Definition at line <a class="el" href="_smp_example_8cpp_source.html#l00199">199</a> of file <a class="el" href="_smp_example_8cpp_source.html">SmpExample.cpp</a>.</p> |
191 Creates a console, reads the databases and prints output to the console. |
178 |
192 <p>Definition at line <a class="el" href="_smp_example_8cpp-source.html#l00199">199</a> of file <a class="el" href="_smp_example_8cpp-source.html">SmpExample.cpp</a>.</p> |
179 </div> |
193 |
180 </div> |
194 </div> |
181 <a class="anchor" id="a3b589411b99d71c460442290516e04ec"></a><!-- doxytag: member="CSmpExample::ReadDatabaseL" ref="a3b589411b99d71c460442290516e04ec" args="(const TDesC &aDbName, CConsoleBase &console)" --> |
195 </div><p> |
182 <div class="memitem"> |
196 <a class="anchor" name="3b589411b99d71c460442290516e04ec"></a><!-- doxytag: member="CSmpExample::ReadDatabaseL" ref="3b589411b99d71c460442290516e04ec" args="(const TDesC &aDbName, CConsoleBase &console)" --> |
183 <div class="memproto"> |
197 <div class="memitem"> |
184 <table class="memname"> |
198 <div class="memproto"> |
185 <tr> |
199 <table class="memname"> |
186 <td class="memname">void CSmpExample::ReadDatabaseL </td> |
200 <tr> |
|
201 <td class="memname">void CSmpExample::ReadDatabaseL </td> |
|
202 <td>(</td> |
187 <td>(</td> |
203 <td class="paramtype">const TDesC & </td> |
188 <td class="paramtype">const TDesC & </td> |
204 <td class="paramname"> <em>aDbName</em>, </td> |
189 <td class="paramname"> <em>aDbName</em>, </td> |
205 </tr> |
190 </tr> |
206 <tr> |
191 <tr> |
241 <td class="paramname"> <em>aNum</em></td><td> </td> |
225 <td class="paramname"> <em>aNum</em></td><td> </td> |
242 </tr> |
226 </tr> |
243 <tr> |
227 <tr> |
244 <td></td> |
228 <td></td> |
245 <td>)</td> |
229 <td>)</td> |
246 <td></td><td></td><td width="100%"><code> [static]</code></td> |
230 <td></td><td></td><td><code> [static]</code></td> |
247 </tr> |
231 </tr> |
248 </table> |
232 </table> |
249 </div> |
233 </div> |
250 <div class="memdoc"> |
234 <div class="memdoc"> |
251 |
235 <p>Opens the database specified in the first parameter aDbName and writes consecutive integers to it starting from the number specified in the second parameter aNum. </p> |
252 <p> |
236 |
253 Opens the database specified in the first parameter aDbName and writes consecutive integers to it starting from the number specified in the second parameter aNum. |
237 <p>Definition at line <a class="el" href="_smp_example_8cpp_source.html#l00245">245</a> of file <a class="el" href="_smp_example_8cpp_source.html">SmpExample.cpp</a>.</p> |
254 <p>Definition at line <a class="el" href="_smp_example_8cpp-source.html#l00245">245</a> of file <a class="el" href="_smp_example_8cpp-source.html">SmpExample.cpp</a>.</p> |
238 |
255 |
239 </div> |
256 </div> |
240 </div> |
257 </div><p> |
241 <a class="anchor" id="a8eaf4cbbf9c4b69d0854140963a22e51"></a><!-- doxytag: member="CSmpExample::PrintMessage" ref="a8eaf4cbbf9c4b69d0854140963a22e51" args="()" --> |
258 <a class="anchor" name="8eaf4cbbf9c4b69d0854140963a22e51"></a><!-- doxytag: member="CSmpExample::PrintMessage" ref="8eaf4cbbf9c4b69d0854140963a22e51" args="()" --> |
242 <div class="memitem"> |
259 <div class="memitem"> |
243 <div class="memproto"> |
260 <div class="memproto"> |
244 <table class="memname"> |
261 <table class="memname"> |
245 <tr> |
262 <tr> |
246 <td class="memname">void CSmpExample::PrintMessage </td> |
263 <td class="memname">void CSmpExample::PrintMessage </td> |
247 <td>(</td> |
264 <td>(</td> |
248 <td class="paramname"></td> |
265 <td class="paramname"> </td> |
249 <td> ) </td> |
266 <td> ) </td> |
250 <td></td> |
267 <td width="100%"></td> |
251 </tr> |
268 </tr> |
252 </table> |
269 </table> |
253 </div> |
270 </div> |
254 <div class="memdoc"> |
271 <div class="memdoc"> |
255 <p>Prints welcome message and purpose of the example. </p> |
272 |
256 |
273 <p> |
257 <p>Definition at line <a class="el" href="_smp_example_8cpp_source.html#l00106">106</a> of file <a class="el" href="_smp_example_8cpp_source.html">SmpExample.cpp</a>.</p> |
274 Prints welcome message and purpose of the example. |
258 |
275 <p>Definition at line <a class="el" href="_smp_example_8cpp-source.html#l00106">106</a> of file <a class="el" href="_smp_example_8cpp-source.html">SmpExample.cpp</a>.</p> |
259 </div> |
276 |
260 </div> |
277 </div> |
261 <a class="anchor" id="afdb87a66a6b0a41cbea465aa2495aa1c"></a><!-- doxytag: member="CSmpExample::StartThreads" ref="afdb87a66a6b0a41cbea465aa2495aa1c" args="()" --> |
278 </div><p> |
262 <div class="memitem"> |
279 <a class="anchor" name="fdb87a66a6b0a41cbea465aa2495aa1c"></a><!-- doxytag: member="CSmpExample::StartThreads" ref="fdb87a66a6b0a41cbea465aa2495aa1c" args="()" --> |
263 <div class="memproto"> |
280 <div class="memitem"> |
264 <table class="memname"> |
281 <div class="memproto"> |
265 <tr> |
282 <table class="memname"> |
266 <td class="memname">void CSmpExample::StartThreads </td> |
283 <tr> |
267 <td>(</td> |
284 <td class="memname">void CSmpExample::StartThreads </td> |
268 <td class="paramname"></td> |
285 <td>(</td> |
269 <td> ) </td> |
286 <td class="paramname"> </td> |
270 <td></td> |
287 <td> ) </td> |
271 </tr> |
288 <td width="100%"></td> |
272 </table> |
289 </tr> |
273 </div> |
290 </table> |
274 <div class="memdoc"> |
291 </div> |
275 <p>Starts the three threads </p> |
292 <div class="memdoc"> |
276 |
293 |
277 <p>Definition at line <a class="el" href="_smp_example_8cpp_source.html#l00075">75</a> of file <a class="el" href="_smp_example_8cpp_source.html">SmpExample.cpp</a>.</p> |
294 <p> |
278 |
295 Starts the three threads |
279 </div> |
296 <p>Definition at line <a class="el" href="_smp_example_8cpp-source.html#l00075">75</a> of file <a class="el" href="_smp_example_8cpp-source.html">SmpExample.cpp</a>.</p> |
280 </div> |
297 |
281 <a class="anchor" id="aa9bbdb0f3c1cb00236cf6eedc2fe0840"></a><!-- doxytag: member="CSmpExample::ConstructL" ref="aa9bbdb0f3c1cb00236cf6eedc2fe0840" args="()" --> |
298 </div> |
282 <div class="memitem"> |
299 </div><p> |
283 <div class="memproto"> |
300 <a class="anchor" name="a9bbdb0f3c1cb00236cf6eedc2fe0840"></a><!-- doxytag: member="CSmpExample::ConstructL" ref="a9bbdb0f3c1cb00236cf6eedc2fe0840" args="()" --> |
284 <table class="memname"> |
301 <div class="memitem"> |
285 <tr> |
302 <div class="memproto"> |
286 <td class="memname">void CSmpExample::ConstructL </td> |
303 <table class="memname"> |
287 <td>(</td> |
304 <tr> |
288 <td class="paramname"></td> |
305 <td class="memname">void CSmpExample::ConstructL </td> |
289 <td> ) </td> |
306 <td>(</td> |
290 <td><code> [protected]</code></td> |
307 <td class="paramname"> </td> |
291 </tr> |
308 <td> ) </td> |
292 </table> |
309 <td width="100%"><code> [protected]</code></td> |
293 </div> |
310 </tr> |
294 <div class="memdoc"> |
311 </table> |
295 <p>Creates three threads; one for reading from the databases and the other two for writing to the databases. </p> |
312 </div> |
296 |
313 <div class="memdoc"> |
297 <p>Definition at line <a class="el" href="_smp_example_8cpp_source.html#l00045">45</a> of file <a class="el" href="_smp_example_8cpp_source.html">SmpExample.cpp</a>.</p> |
314 |
298 |
315 <p> |
299 </div> |
316 Creates three threads; one for reading from the databases and the other two for writing to the databases. |
300 </div> |
317 <p>Definition at line <a class="el" href="_smp_example_8cpp-source.html#l00045">45</a> of file <a class="el" href="_smp_example_8cpp-source.html">SmpExample.cpp</a>.</p> |
301 </div> |
318 |
302 <hr size="1"/><address style="text-align: right;"><small>Generated by |
319 </div> |
|
320 </div><p> |
|
321 <hr size="1"><address style="text-align: right;"><small>Generated on Thu Jan 21 10:33:07 2010 for TB10.1 Example Applications by |
|
322 <a href="http://www.doxygen.org/index.html"> |
303 <a href="http://www.doxygen.org/index.html"> |
323 <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.3 </small></address> |
304 <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.2 </small></address> |
324 </body> |
305 </body> |
325 </html> |
306 </html> |