diff -r f345bda72bc4 -r 43e37759235e Symbian3/Examples/guid-6013a680-57f9-415b-8851-c4fa63356636/class_c_smp_example.html --- a/Symbian3/Examples/guid-6013a680-57f9-415b-8851-c4fa63356636/class_c_smp_example.html Tue Mar 30 11:56:28 2010 +0100 +++ b/Symbian3/Examples/guid-6013a680-57f9-415b-8851-c4fa63356636/class_c_smp_example.html Tue Mar 30 16:16:55 2010 +0100 @@ -1,204 +1,189 @@ - -
-Public Member Functions | |
virtual | ~CSmpExample () |
void | CreateDatabaseL (const TDesC &aDbName) |
void | PrintMessage () |
void | StartThreads () |
Public Member Functions | |
virtual | ~CSmpExample () |
void | CreateDatabaseL (const TDesC &aDbName) |
void | PrintMessage () |
void | StartThreads () |
Static Public Member Functions | |
static CSmpExample * | NewL () |
static TInt | ReadThreadFuncL (TAny *aPtr) |
static TInt | WriteThread1FuncL (TAny *aPtr) |
static TInt | WriteThread2FuncL (TAny *aPtr) |
static void | ReadBothDatabasesL () |
static void | ReadDatabaseL (const TDesC &aDbName, CConsoleBase &console) |
static void | WriteDbFuncL (const TDesC &aDbName, TInt aNum) |
Protected Member Functions | |
void | ConstructL () |
This class creates three threads to demonstrate multithreading in a unicore and a SMP environment.
-Definition at line 28 of file SmpExample.h.
-Definition at line 28 of file SmpExample.h.
+CSmpExample::~CSmpExample | +CSmpExample::~CSmpExample | ( | -+ | ) | - [virtual] |
+ [virtual] |
Destructor
--Destructor -
Definition at line 22 of file SmpExample.cpp.
+Definition at line 22 of file SmpExample.cpp.
-
CSmpExample * CSmpExample::NewL | +CSmpExample * CSmpExample::NewL | ( | -+ | ) | - [static] |
+ [static] |
-NewL() -
Definition at line 33 of file SmpExample.cpp.
+Definition at line 33 of file SmpExample.cpp.
void CSmpExample::CreateDatabaseL | +void CSmpExample::CreateDatabaseL | ( | const TDesC & | -aDbName | +aDbName | ) | -+ |
Creates a named database with the name specified in the parameter, creates a table and adds columns to it.
--Creates a named database with the name specified in the parameter, creates a table and adds columns to it. -
Definition at line 351 of file SmpExample.cpp.
+Definition at line 351 of file SmpExample.cpp.
TInt CSmpExample::ReadThreadFuncL | +TInt CSmpExample::ReadThreadFuncL | ( | TAny * | -aPtr | +aPtr | ) | - [static] |
+ [static] |
This function is called when iReadThread is resumed. It creates a cleanup stack and calls ReadBothDatabasesL() to read both the databases.
--This function is called when iReadThread is resumed. It creates a cleanup stack and calls ReadBothDatabasesL() to read both the databases. -
Definition at line 220 of file SmpExample.cpp.
+Definition at line 220 of file SmpExample.cpp.
TInt CSmpExample::WriteThread1FuncL | +TInt CSmpExample::WriteThread1FuncL | ( | TAny * | -aPtr | +aPtr | ) | - [static] |
+ [static] |
This function is called when iWriteThread is resumed. It creates a cleanup stack and calls WriteDbFuncL() to write integers to KDatabase1.
--This function is called when iWriteThread is resumed. It creates a cleanup stack and calls WriteDbFuncL() to write integers to KDatabase1. -
Definition at line 324 of file SmpExample.cpp.
+Definition at line 324 of file SmpExample.cpp.
TInt CSmpExample::WriteThread2FuncL | +TInt CSmpExample::WriteThread2FuncL | ( | TAny * | -aPtr | +aPtr | ) | - [static] |
+ [static] |
This function is called when iWriteThread is resumed. It creates a cleanup stack and calls WriteDbFuncL() to write integers to KDatabase2.
--This function is called when iWriteThread is resumed. It creates a cleanup stack and calls WriteDbFuncL() to write integers to KDatabase2. -
Definition at line 297 of file SmpExample.cpp.
+Definition at line 297 of file SmpExample.cpp.
void CSmpExample::ReadBothDatabasesL | +void CSmpExample::ReadBothDatabasesL | ( | -+ | ) | - [static] |
+ [static] |
Creates a console, reads the databases and prints output to the console.
--Creates a console, reads the databases and prints output to the console. -
Definition at line 199 of file SmpExample.cpp.
+Definition at line 199 of file SmpExample.cpp.
void CSmpExample::ReadDatabaseL | +void CSmpExample::ReadDatabaseL | ( | const TDesC & | aDbName, | @@ -212,24 +197,23 @@|||
) | - [static] |
+ [static] |
Opens the database named in the first parameter, reads it and prints the output to the console.
--Opens the database named in the first parameter, reads it and prints the output to the console. -
Definition at line 131 of file SmpExample.cpp.
+Definition at line 131 of file SmpExample.cpp.
void CSmpExample::WriteDbFuncL | +void CSmpExample::WriteDbFuncL | ( | const TDesC & | aDbName, | @@ -243,83 +227,80 @@|||
) | - [static] |
+ [static] |
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.
--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. -
Definition at line 245 of file SmpExample.cpp.
+Definition at line 245 of file SmpExample.cpp.
void CSmpExample::PrintMessage | +void CSmpExample::PrintMessage | ( | -+ | ) | -+ |
Prints welcome message and purpose of the example.
--Prints welcome message and purpose of the example. -
Definition at line 106 of file SmpExample.cpp.
+Definition at line 106 of file SmpExample.cpp.
void CSmpExample::StartThreads | +void CSmpExample::StartThreads | ( | -+ | ) | -+ |
Starts the three threads
--Starts the three threads -
Definition at line 75 of file SmpExample.cpp.
+Definition at line 75 of file SmpExample.cpp.
void CSmpExample::ConstructL | +void CSmpExample::ConstructL | ( | -+ | ) | - [protected] |
+ [protected] |
Creates three threads; one for reading from the databases and the other two for writing to the databases.
--Creates three threads; one for reading from the databases and the other two for writing to the databases. -
Definition at line 45 of file SmpExample.cpp.
+Definition at line 45 of file SmpExample.cpp.
-