ext/common/ApplicationPool2/SpawnerFactory.h in passenger-4.0.5 vs ext/common/ApplicationPool2/SpawnerFactory.h in passenger-4.0.6

- old
+ new

@@ -106,11 +106,11 @@ * SpawnerFactory always returns the same DummyFactory object upon * creating a dummy spawner. This allows unit tests to easily * set debugging options on the spawner. */ DummySpawnerPtr getDummySpawner() { - lock_guard<boost::mutex> l(syncher); + boost::lock_guard<boost::mutex> l(syncher); if (dummySpawner == NULL) { dummySpawner = make_shared<DummySpawner>(resourceLocator, config); } return dummySpawner; } @@ -118,9 +118,17 @@ /** * All created Spawner objects share the same SpawnerConfig object. */ SpawnerConfigPtr getConfig() const { return config; + } + + RandomGeneratorPtr getRandomGenerator() const { + return randomGenerator; + } + + const ResourceLocator &getResourceLocator() const { + return resourceLocator; } }; typedef shared_ptr<SpawnerFactory> SpawnerFactoryPtr;