> -----Original Message-----
> From: Sergei Golubchik [mailto:[email protected]]
> Sent: Dienstag, 26. Juni 2012 14:31
> To: Vladislav Vaintroub
> Cc: [email protected]
> 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


_______________________________________________
Mailing list: https://launchpad.net/~maria-developers
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~maria-developers
More help   : https://help.launchpad.net/ListHelp

Reply via email to