[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Moving cancellation support to libsvn_subr

From: Daniel Shahaf <d.s_at_daniel.shahaf.name>
Date: Wed, 10 Feb 2016 09:23:01 +0000

Philip Martin wrote on Tue, Feb 09, 2016 at 18:19:02 +0000:
> This code keeps growing and I'm thinking of moving both the signal
> handler and cancellation handler to libsvn_subr. We need some storage
> for the volatiles and using pool memory implies a limited lifetime that
> interacts badly with the signal handlers so I'm thinking of using static
> storage in the library. Something like:
>
> /* Setup signal handlers and return a cancellation handler. */
> svn_cancel_func_t svn_cmdline__setup_cancellation_handler();
>
> /* Return a signal that triggered cancellation or zero if no such
> signal. */
> int svn_cmdline__get_cancelled_signum();

For future reference, Philip implemented that in r1729463.
Received on 2016-02-10 10:23:23 CET

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.