concurrent_test 
A real sheet with a deterministic yield so queued loading and foreground consumers overlap.
Vars | |
| fail_generation | Whether generation throws, to check that ownership is released on failure. |
|---|---|
| generation_calls | How many times generate_spritesheets() ran. |
| pause_generation | Whether generation sleeps, so other callers arrive while it owns the sheet. |
Procs | |
| create_spritesheets | Uses a tiny real icon to exercise both generation and the smart cache. |
| generate_spritesheets | Holds the owner long enough for competing consumers and can inject a retryable failure. |
Var Details
fail_generation 
Whether generation throws, to check that ownership is released on failure.
generation_calls 
How many times generate_spritesheets() ran.
pause_generation 
Whether generation sleeps, so other callers arrive while it owns the sheet.
Proc Details
create_spritesheets
Uses a tiny real icon to exercise both generation and the smart cache.
generate_spritesheets
Holds the owner long enough for competing consumers and can inject a retryable failure.