diff -r 80ef3a206772 -r 48780e181b38 Symbian3/SDK/Source/GUID-301037F1-1983-565A-88F9-633BBF0EBB91.dita
--- a/Symbian3/SDK/Source/GUID-301037F1-1983-565A-88F9-633BBF0EBB91.dita Fri Jul 16 17:23:46 2010 +0100
+++ b/Symbian3/SDK/Source/GUID-301037F1-1983-565A-88F9-633BBF0EBB91.dita Tue Jul 20 12:00:49 2010 +0100
@@ -1,213 +1,165 @@
-
-
-
-
-
- The
-example demonstrates the following use cases: Sending and handling
-a signal using the default handler Sending and handling
-a signal using a customized signal handler Ignoring an incoming
-signal Blocking and releasing
-a signal Waiting for a signal Generating and handling
-a Using a signal to gracefully
-terminate a process Using a signal to handle
-an asynchronous event The example delivers 3 sub projects: basicSignals: This
-project demonstrates basic signal use cases. It shows the first six use cases
-mentioned in the list above. The use cases are demonstrated through sigtermSignal: This
-project demonstrates the graceful termination of a process using the asyncSignal: This
-project demonstrates asynchronous signal handling using the The
-use cases demonstrated in this example are described below. Note: For
-clarity in the documentation for this example, signal names have been given
-in capitals whilst process names have been given in lower case. 1.
-Sending and handling a signal using the default handler The default
-implementation of the signals supported in P.I.P.S. will either terminate
-a process or ignore a process. Signals are generated using the To
-demonstrate this use case we use 2. Sending and handling a signal using a customized signal
-handler To override the default implementation of a signal a
-customized handler can be defined. This customized handler can be set either
-by using For the demonstration
-of this particular use case, 3. Ignoring an incoming signal A signal
-can be ignored by setting 4. Blocking and releasing a signal A
-signal can be blocked by first adding it to the blocking set (a list of signals
-we want to block, when a signal is executing) by using the Demonstration of this use case involves
-the 5.
-Waiting for a signal Before a process can wait on a particular
-signal, it has to add the signal to the mask set (which is a list of signals
-we want to block) and then call the For
-the demonstration of this use case we are setting a timeout of 5 seconds.
-The 6.
-Generating and handling a The
- 7. Using a signal to gracefully
-terminate a process Graceful termination of process can be achieved
-by using the This
-use case is demonstrated using the The The 8. Using a signal to handle an asynchronous event This use case demonstration is performed using the The The Hence, the communication between the two processes happens through
-the Click
-on the following link to download the example: Click on the following link
-to download the example: Click on the following link
-to download the example: To view the BasicSignal
-example source click: To view the SigtermSignal example
-source click: To view the AsyncSignal example
-source click: You can build the example from your IDE or the command
-line: If you use an
-IDE, import the If you use the command line, open a command prompt, and set the current
-directory to the source code directory of the example. You can then build
-the example with the SBSv1 build tools using the following commands: The example builds the following executables :
-
-
-
-
-
-
-
in the
-
NOTE :
The
The
The
The
As the
In
-order to toggle between the processes use
The example demonstrates the following use cases:
Sending and +handling a signal using the default handler
Sending and +handling a signal using a customized signal handler
Ignoring an +incoming signal
Blocking and +releasing a signal
Waiting for +a signal
Generating and
+handling a
Using a signal +to gracefully terminate a process
Using a signal +to handle an asynchronous event
The example delivers 3 sub projects:
basicSignals: This project demonstrates basic signal use cases. It shows the first
+six use cases mentioned in the list above. The use cases are demonstrated
+through
sigtermSignal: This project demonstrates the graceful termination of a process
+using the
asyncSignal: This project demonstrates asynchronous signal handling using the
The use cases demonstrated in this example are described below.
Note: For clarity in the documentation for this example, signal +names have been given in capitals whilst process names have been given +in lower case.
1. Sending and handling a signal using the +default handler
The default implementation of the signals
+supported in P.I.P.S. will either terminate a process or ignore a
+process. Signals are generated using the
To demonstrate this use case we use
2. +Sending and handling a signal using a customized signal handler
To override the default implementation of a signal a customized
+handler can be defined. This customized handler can be set either
+by using
For
+the demonstration of this particular use case,
3. Ignoring an incoming signal
A
+signal can be ignored by setting
4. Blocking and releasing a signal
A signal can be blocked by first adding it to the blocking set
+(a list of signals we want to block, when a signal is executing) by
+using the
Demonstration of this
+use case involves the
5. Waiting for a signal
Before
+a process can wait on a particular signal, it has to add the signal
+to the mask set (which is a list of signals we want to block) and
+then call the
For the demonstration of this use case we are setting
+a timeout of 5 seconds. The
6. Generating and handling a
The
7. Using a signal to gracefully terminate a +process
Graceful termination of process can be achieved
+by using the
This use case is demonstrated using the
The
The
8. Using a signal to handle an asynchronous event
This use case demonstration is performed using the
The
The
Hence, the communication between the two processes happens
+through the
Click on the following link to download the example:
Click on the following
+link to download the example:
Click on the following
+link to download the example:
To view the BasicSignal
+example source click:
To view the SigtermSignal
+example source click:
To view the AsyncSignal
+example source click:
You can build the example from your IDE +or the command line:
If you
+use an IDE, import the
If you use the command line, open a command prompt, and set +the current directory to the source code directory of the example. +You can then build the example with the SBSv1 build tools using the +following commands:
The example builds the following executables :
in the
NOTE :
The
The
The
The
As the
In order to toggle between the processes use