2 Mar 12:59
Re: issues in cvs
Michael Hall <michaelhall <at> btinternet.com>
2003-03-02 11:59:10 GMT
2003-03-02 11:59:10 GMT
On Sun, 2003-03-02 at 11:27, Ed Sweetman wrote: > Michael Hall wrote: > > On Sat, 2003-03-01 at 17:50, Ed Sweetman wrote: > > > >>I was able to recreate the bug and this latest cvs commit seems to fix > >>it. Try it out. > >> > >>somewhat unfortunately, my kernel caches all of filesystem data for my > >>music filesystem and subsequent attempts dont seem to touch the disc at > >>all and work completely from ram, even if it's a new zinf and i delete > >>the database it creates on just loading. > >> > > > > > > Just been looking over latest commit to musiccatalog.cpp (rev 1.11). It > > seems that every method that once acquired the m_mutex now creates its > > own Mutex (also called m_mutex, thus hiding the instance variable) and > > acquires it. This means that every method call gets a different mutex... > > kinda defeats the point, no? > > > > you'd think so. but I haven't seen any adverse effects from it and it > actually follows scope so it doesn't deadlock. Given that everytime a method is called a new mutex is allocated off the stack, I'm not surprised you don't get any deadlocks. You might as well remove them completely. All they're doing now is slowing the code down by acquiring a lock that it just created and no other code path is ever going to see.(Continue reading)
RSS Feed