LegendaryBo / cspoker

Automatically exported from code.google.com/p/cspoker
GNU General Public License v2.0
0 stars 0 forks source link

Fine grained locking for recieveing unique objects #17

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Right now when Player, XmlPlayerCommunication, ... or other unique Objects
are recieved from their HashMaps a global lock is set. It would be better
to use the putIfAbsent method of ConcurrentHashMap for this. 

To be able to do this for Player objects the Player instantiation needs to
be  postponed using a wrapper Object (because of the unique Player ID
requirement).

Original issue reported on code.google.com by guy...@gmail.com on 7 Oct 2007 at 3:34

GoogleCodeExporter commented 9 years ago

Original comment by guy...@gmail.com on 8 Mar 2008 at 8:54