I've recently implemented the same data structure for the 2nd time in 3 years, in two unrelated projects.
I feel it may be a common pattern?
Pattern description:
I have a central object pool, and many downstream object pools.
The downstream object pools acquire from the central object pool.
The central object pool can issue the same resource to different downstream object pools, but never the same resource twice to the same pool.
The central pool is therefore the universal set of resources in the downstream resource pools.
Aucun commentaire:
Enregistrer un commentaire