Class LoaderThreadPool

java.lang.Object
org.xj3d.core.loading.LoaderThreadPool

public class LoaderThreadPool extends Object
A local singleton that manages all of the threads used to load content.

The singleton loads a number of threads that must use a common map and queue instance for all users. To organise and queue inputs to this class we must first fetch the instance that is running and then query it for the map and queue. Once you have access to these, you are free to use them directly to add or remove items from the general pool.

The number of threads can be controlled at startup of the application by setting a system property. If the property defines a value less than or equal to zero it is ignored and the default number of threads are loaded - 5.

Properties

The following properties are used by this class

  • org.xj3d.core.loading.threads The number of concurrent threads to be started to do loading.
Version:
$Revision: 1.6 $
Author:
Justin Couch