(1)
Is in C/C++ pthreads heap used by malloc/free or new/delete separated (one different heap for each thread) like stacks or not??
(2)
If I use the directives
Code:
#define ALIGN __attribute__ ((aligned (4)))
typedef struct
{
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;
but then I allocate a Type_Camera with new is the alignment respected or not in the heap?
And with malloc()?
thank you