[MDEV-10385] Refactor threadpool (move common logic out of platform specific files into shared code) Created: 2016-07-16 Updated: 2016-09-23 Resolved: 2016-09-23 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | OTHER |
| Fix Version/s: | 10.2.2 |
| Type: | Task | Priority: | Major |
| Reporter: | Vladislav Vaintroub | Assignee: | Vladislav Vaintroub |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Description |
|
In light of adding priorities to threadpool ( Specifically, it would be very helpful to have a single callback function, that is called when new connection is queued or when client IO arrives. That callback would also do a proper cleanup in case of error/quit, for both THD and scheduler specific structures. The code would be similar to handle_event() But, for this code to be in threadpool_common.cc, we need to expose some platform/imple functionality (start_io / set_wait_timeout, connection_t struct) somehow. |