Branch: Tag:

2006-02-23

2006-02-23 12:26:27 by Jonas Wallden <jonasw@roxen.com>

Fix [bug 4116 (#4116)] where initialization of /internal-roxen-spinner-{color} data
wasn't thread-safe.

Rev: server/base_server/configuration.pike:1.591

5:   // @appears Configuration   //! A site's main configuration    - constant cvs_version = "$Id: configuration.pike,v 1.590 2006/02/20 15:49:01 noring Exp $"; + constant cvs_version = "$Id: configuration.pike,v 1.591 2006/02/23 12:26:27 jonasw Exp $";   #include <module.h>   #include <module_constants.h>   #include <roxen.h>
1202: Inside #if constant(Image.GIF) && constant(Image.PNG)
      // Load all spinner PNGs    if (!spinner_data) { -  spinner_data = ({ }); +  array(mapping) temp_spinner_data = ({ });    for (int i = 0; i < 12; i++) {    string src = lopen("roxen-images/spinner" + i + ".png", "r")->read(); -  spinner_data += ({ Image.PNG._decode(src) }); +  temp_spinner_data += ({ Image.PNG._decode(src) });    } -  +  spinner_data = temp_spinner_data;    }       // Create non-transparent Image object for each frame