jkklee / pymysql-pool

A simple but robust connection pool (with multiplexing) base on PyMySQL, mainly used for multi threads mode, which also compatible with single thread mode.
GNU General Public License v3.0
177 stars 49 forks source link

Question: Where can I find the code that handles the thread-safety in Connection checkin and checkout? #23

Closed Gatsby-Lee closed 4 weeks ago

Gatsby-Lee commented 11 months ago

Thank you for your work. I got curious how your pymysql-pool handles the thread-safety in Connection checkin and checkout? Any Lock? Thank you

jkklee commented 4 weeks ago

In python, queue and collection.deque all support thread safe data exchange.