
4 Apr
2011
4 Apr
'11
8:13 p.m.
Hello users. I am using boost::threads for an application that allocates space in heap with the new operator. Therefore, different threads allocate memory in parallel. Do I have to link my application to any other library apart from the libboost_thread to guarantee a thread safe memory allocation? I searched online, but I got more confused. Do I have to define the -D_REENTRANT or the -pthread symbol? Best Regards, Panagiotis Foteinos