Go backward to Compilation and Execution Go up to Program Control Go forward to Restrictions |
#define RT_PARAMETER #include <rt++.h>
RT_STACK_PUSH
. If this preprocessor constant is defined,
each declaration of an RT++ object checks whether the stack of the current
thread has overflown and aborts the program if this is the case. This may be
useful for debugging RT++ programs but considerably slows down execution.
RT_THREAD_NOTPAR
. If this preprocessor constant is defined,
the code of each thread is executed when the thread is
defined i.e. the program is
sequentially executed by a single thread. This may be useful for debugging an
RT++ program. Defining this constant may change the termination
semantics of a program (if a thread does not terminate).
RT_THREAD_NOTLAZY
. If this preprocessor constant is defined,
the thread definition
Thread<R, A, ..., A> t(f, a, ..., a)is equivalent to
Thread<R, A, ..., A> t
t.start
(f, a, ..., a)
RT_TBAG_NOTPAR
. If this preprocessor constant is defined,
the code of each bag thread is executed when the bag thread
is created i.e. the program is sequentially
executed by a single thread. This may be useful for debugging an
RT++ program. Defining this constant may change the termination
semantics of a program (if a thread does not terminate).
RT_TBAG_NOTLAZY
. If this preprocessor constant is defined,
the following operation for adding a thread to a thread bag
ThreadBag<R, A, ..., A>(b, f, a, ..., a)is equivalent to
ThreadBag<R, A, ...,
A>::start
(b, f, a, ...,
a)