Skip to content

Commit

Permalink
Further synchronization work
Browse files Browse the repository at this point in the history
  • Loading branch information
Timothy Hahn committed Feb 9, 2014
1 parent bae2aff commit b1c84aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crane/src/main/scala/crane/World.scala
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ package crane
import crane.exceptions.DuplicateEntityException

/** External Imports **/
import scala.collection.mutable.{ArrayBuffer, HashMap}
import scala.collection.mutable.{ArrayBuffer, HashMap, SynchronizedBuffer}
import scala.collection.concurrent.{Map => ConcurrentMap}
import java.util.concurrent.ConcurrentHashMap
import collection.JavaConversions._
Expand All @@ -16,7 +16,7 @@ import collection.JavaConversions._
*/
class World(var delta: Int=1) {
// Private Variables
private val _entities: ArrayBuffer[Entity] = ArrayBuffer()
private val _entities: ArrayBuffer[Entity] = new ArrayBuffer[Entity] with SynchronizedBuffer[Entity]
private val _systems: HashMap[Int, ArrayBuffer[System]] = HashMap()

// Public Variables
Expand Down

0 comments on commit b1c84aa

Please sign in to comment.