Go backward to Standard Output Go up to Restrictions Go forward to Global Variables |
new
operation (and likewise the C malloc
) return
memory that was allocated in the data segment of the current process. In case
you would like to use these operations for the temporal allocation of dynamic
memory, you have to bind the thread to a specific process during the whole use
of this memory e.g.
rt_bind(); T *t = new T; use(t); rt_unbind();