in reply to Locking and synchronisation within tied hashes
You don't need to do any locking when tie or untie, but you do have to untie and re-tie in a number of situations because of the internal caching that DB_File does. The source of MLDBM::Sync will show you when to do this.
By the way, this would all be unnecessary if you used BerkeleyDB instead. It handles locking and synchronization internally.
|
|---|