[][src]Module ranagrams::factory

thread model

Traits

WorkerFun

The résumé (trait) required of worker threads who wish to work in the factory. The general pattern of work is that workers inspect an item (I) to see whether it can be shipped. If not, they improve it, making some number of improved items.

Functions

manufacture

Start the factory going. The roster is the number of workers. The slop_factor is multiplied by this number to determine the number of items to keep in reserve for workers that run low in their personal work queues. The materials are the initial items requiring improvement. The fun provides the specifications for what the workers will do to improve or inspect their work.