tikv / yatp

Yet another thread pool in rust for both callbacks or futures.
Apache License 2.0
135 stars 32 forks source link

add task metrics for priority runner #77

Closed glorv closed 1 year ago

glorv commented 1 year ago

The different between multilevel and priority is the queuing strategy and the runner is almost the same, the only difference is that multilevel runner adjusts level 0 chance dynamically. So this PR extract the common part of the runner into a separate struct.

glorv commented 1 year ago

@BusyJay @Connor1996 PTAL