Subj : Re: Linux thread weird problem.. To : comp.programming.threads From : Joe Seigh Date : Fri Jul 01 2005 10:45 am ranjeetw@gmail.com wrote: > > I have single thread handling this data in std::map. This thread waits > on select, and gets notified from other threads through pipe (as > mentioned earlier). Main thread wakes up, and processes requests. > > I am not creating any other thread. I am not passing any functions for > callback. I am not supplying pointers to this std::map structures. This > remains a mystery for me, why app should get in endless loop in STL lib > only. > The data structure was probably corrupted earlier, not at the point you're seeing the problem. I don't have enough inforation and am not familiar enough with STL to know what the problem is. One problem is that "threadsafe as int" in C++ doesn't mean very much. -- Joe Seigh When you get lemons, you make lemonade. When you get hardware, you make software. .