pthread heap separated like stack??
Is in C/C++ pthreads heap used by malloc/free or new/delete separated (one different heap for each thread) like stacks or not??
If I use the directives
but then I allocate a Type_Camera with new is the alignment respected or not in the heap?
#define ALIGN __attribute__ ((aligned (4)))
pthread_t ALIGN ThHandle;//not shared
sem_t ALIGN Termination;
//pthread_mutex_t * BufStatusCommMutex_StatP;//not shared//duplicated
Type_SubCamera Sub;//serialized by MainThread, implicitely (non mutexed) shared by Station and Camera
} ALIGN Type_Camera;
And with malloc()?