More synchronization is needed! The dangers of multithreaded programming.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2485 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2003-04-28 17:38:06 +00:00
parent 201ee0acf3
commit 72768a3a9e
3 changed files with 19 additions and 14 deletions
@@ -1,5 +1,5 @@
//
// $Id: TileSet.java,v 1.48 2003/04/27 07:33:15 mdb Exp $
// $Id: TileSet.java,v 1.49 2003/04/28 17:38:06 mdb Exp $
package com.threerings.media.tile;
@@ -335,7 +335,9 @@ public abstract class TileSet
public static void setCanFlushCache (boolean enabled)
{
if (_tiles != null) {
_tiles.setCanFlush(enabled);
synchronized (_tiles) {
_tiles.setCanFlush(enabled);
}
}
}