Thread (39 messages) flat view 39 messages, 3 authors, 2016-06-15

Re: [PATCH 5/4] run-command: implement abort_async for pthreads

From: Jeff King <hidden>
Date: 2016-06-15 22:50:57

On Fri, Apr 01, 2011 at 04:17:14PM -0400, Jeff King wrote:
quoted
static inline int pthread_cancel(pthread_t thread)
{
	SetEvent(thread.cancel_event);
	CancelSynchronousIo(thread.handle);
}
There are a ton of cancellation points, not just I/O (e.g., sleep).
However, interrupting a read would probably be sufficient for git's
purposes.
Actually, I take that back. It would be sufficient for abort_async with
its current callers, but adding a pthread_cancel that is only partially
there may end up causing headaches down the road.

-Peff
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help