Boost logo

Boost Users :

Subject: [Boost-users] [boost::threads] -D_REENTRANT?
From: Panagiotis Foteinos (pafotein_at_[hidden])
Date: 2011-04-04 16:13:11


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



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net