Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Examples  

examp15.cpp

This example is to show use of the initial Thread and ThreadContext. A couple of threads are executed to show off:

1. Default operations 2. Declaring a stack size 3. Redirecting the context allocation to something that takes arguments.

The last one may seem like overkill, we could have easily not substituted anything and had the caller entry point cast the ThreadContext to the ArgumentContext and extract any arguments, but then you wouldn't have a live example!


This is the CoreLinux++ reference manual
Provided by The CoreLinux Consortium