|
From: Richard S. <rd...@ri...> - 2006-10-17 05:56:05
|
Hi Nilesh, Can you tell us exactly what error messages you get from GCC? Meanwhile, I'm going to take another look at Loki's test projects. I'm sure we have several tests which cover the singleton, threading, and small-object-allocator parts of Loki. You might want to take a look at those test projects and see if any of them are similar enough to how you use Loki. Thanks, Rich nilesh joshi wrote: > Hi, > I am new for using small object allocator. > I have ported it on gcc compiler for Motorolla processor. > It compiles and works fine for single threaded option while > using singleton. > But as soon as i give an option for ObjectLevelLockable > the GCC compiler start giving errors. > This is because for ObjectLevelLockable class, Loki makes use > of a volatile variable for class Host in object > and SingleThreaded doesnot make use of one. > This is used to create a pointer instance in singleton.h > But the singleton implementation for instance() doesnot return > a volatile reference. > Is there a trick that is to be used to remove these errors > or is it that we have to do manual changes to return the > volatile reference everytime we use multithreaded applications. > Awaiting your reply. > Thanks in advance, > Regards, > Nilesh. |