[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 (MDEV-10297), it would be good to have common code/logic shared by windows and unix implementations.

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()
https://github.com/MariaDB/server/blob/10.1/sql/threadpool_unix.cc#L1437

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.


Generated at Thu Feb 08 07:41:49 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.