← Back to team overview

maria-developers team mailing list archive

Re: Review request: SHOW EXPLAIN


> -----Original Message-----
> From: Sergei Golubchik [mailto:serg@xxxxxxxxxxxx]
> Sent: Dienstag, 26. Juni 2012 14:31
> To: Vladislav Vaintroub
> Cc: maria-developers@xxxxxxxxxxxxxxxxxxx
> Subject: Re: [Maria-developers] Review request: SHOW EXPLAIN
> Hi, Vladislav!
> On Jun 26, Vladislav Vaintroub wrote:
> > On Unix but not on Windows, there is pthread_kill  does not work if
> > threadpool is in use  (a connection is not stuck in read/recv in this
> > case).
> Why threadpool on unix ignores (restarts the wait on) EINTR?

What else should it do? It cannot handle EINTR in a reasonable way
- there is no fix thread-to-connection relation, 
- there are several threads that can wait,  and  there are 2  different
"waits" (one on epoll or similar,  another one on condition, and this wait
is not interrupted with EINTR)
- The thread that can be interrupted by epoll_wait is not predefined, and
can change its role to be a "worker" thread, and then wait on condition.

> Regards,
> Sergei

Follow ups