[gameprogrammer] variables and multithreading

Im writing a multithreaded server and I have reached the point where I have to access the array containing the players data from the main loop. Should I use some variable to mark if a record is being modified by network thread?

--
Roger D. Vargas
http://dsgp.blogspot.com | Linux, programación, juegos


______________________________________________ LLama Gratis a cualquier PC del Mundo. Llamadas a fijos y móviles desde 1 céntimo por minuto. http://es.voice.yahoo.com



--------------------- To unsubscribe go to http://gameprogrammer.com/mailinglist.html


Other related posts: