From: Milan B. <mi...@km...> - 2005-09-22 11:08:24
|
Michael Hieke wrote: >> If you ask me, I would use a single lock that holds the entire DBH. >> The lock itself would build a list of objects that tried to update >> themselves. When lock is completely released, it would call update() >> on each object from that list. > > That looks like a good idea at first, but could paint us into a corner > later on. Suppose you need to lock one object, but don't *want* to lock > all other updates too? Well, you don't lock them, just delay them. > There might be cases in the future we do not > envision now, what with background threads and everything... You could be right, OTOH locks really don't last long. I need to think about this. We also need to implement that invalidation stuff, and this could be an easy shortcut for it. -- Milan Babuskov http://fbexport.sourceforge.net http://www.flamerobin.org |