|
From: nilesh j. <nil...@pa...> - 2006-10-17 05:28:28
|
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. http://www.patni.com World-Wide Partnerships. World-Class Solutions. _____________________________________________________________________ This e-mail message may contain proprietary, confidential or legally privileged information for the sole use of the person or entity to whom this message was originally addressed. Any review, e-transmission dissemination or other use of or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this e-mail in error kindly delete this e-mail from your records. If it appears that this mail has been forwarded to you without proper authority, please notify us immediately at net...@pa... and delete this mail. _____________________________________________________________________ |