- Counted_Controller<'Tag,'PoolStorage> : PoolStorage //Achtung! ggf. in einen member-type ablegen
- {
- static bind<'NewController> = Fallback_Controller<Counted_Controller, 'NewController>
- tls_counter : int //Anzahl der Tasks im Thread
- shared_counter : atomic int //Anzahl der Threads mit Tasks
- timer : TimerHandle //ein Timer und eine Uhr sollten reichen :-)
- clock : ClockHandle
- void push_back(task<'Tag>); //Counter erhöhen
- task<'Tag,bool> pop_front(void); //Counter verringen und den Tag für "Last" binden
- }