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:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user