LaKraven / LKSL

LaKraven Studios Standard Library
http://otapi.com
Other
51 stars 15 forks source link

Event Engine - Event Thread Pools #11

Closed LaKraven closed 9 years ago

LaKraven commented 9 years ago

Basically you inherit from "TLKEventThreadPooled" to define one or more operations to be performed when that Thread is provided with a TLKEvent descendant for which it has registered a Listener, just as you do currently with TLKEventThread.

However, you don't create an instance of a "TLKEventThreadPooled" descendant directly, but instead through a "TLKEventThreadPool".

"TLKEventThreadPool" manages multiple instances of its associated "TLKEventThreadPooled" Type, and balances the workload (in the form of Events) between them.

Think of this like an Event-Driven alternative to classic "Worker Threads", but using the same Persistence model as the rest of the Event Engine (which reduces operational overhead)

LaKraven commented 9 years ago

Notes to Self:

LaKraven commented 9 years ago

The fundamental Event Pooling solution is now implemented, and working in the most basic form. This completes this specific issue. Enhancements and Bug Fixes should be filed as separate Issues.