On Mon, Mar 17, 2003 at 03:55:32PM +0100, Bo Lorentsen wrote: > Hi ... > > I have been spending some time, trying to make the g++ 3.2 work in a MT > environment, and it works out quite nicely, but ... I have some problems > while using strings (other things too I belive) on a SMP machine. > > Now this all ends up in the "i386-linux/bits/atomicity.h" file, that > "only" contain an single threaded version (read gcc 3.2 porting guide). > So my question then is this : are there anyone how have made a pthread > version ore anything like it for linux SMP, or will STL be forbidden > while using SMP for a while ?
Huh? Is this your own installation of GCC 3.2? Our i386-linux/bits/atomicity.h contains the atomic operations, not a single-threaded version. -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer