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: ImageManager.java,v 1.52 2003/04/27 07:33:15 mdb Exp $
// $Id: ImageManager.java,v 1.53 2003/04/28 17:38:06 mdb Exp $
package com.threerings.media.image;
@@ -119,7 +119,9 @@ public class ImageManager
*/
public void setCanFlushCache (boolean enabled)
{
_ccache.setCanFlush(enabled);
synchronized (_ccache) {
_ccache.setCanFlush(enabled);
}
}
/**