Hello,

I've been coding a Netty server for over a year.
My games communicate and play well with it.

I ran into one problem:

I have the standard workergroup, bossgroup thing that spawns threads for every 
connection.

I also have another thread that is a loop that gives players rewards based on 
time, and logs timed out players off.

Without locks, the main loop throws exceptions with variables when two threads 
try and access at the same time.

Is there any general philosophy I should use than having global locks for the 
specific variables being accessed, and making the locks as simple as possible?

,Jim

-- 
You received this message because you are subscribed to the Google Groups 
"Netty discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/netty/6f061041-1104-405a-adb8-d308a11df089%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to