[cmake-developers] kwsysProcess threadsafety
Sebastian Holtermann
seblist at xwmw.org
Mon Jan 8 07:26:53 EST 2018
On Montag, 8. Januar 2018 06:56:57 CET Brad King wrote:
> On 01/06/2018 02:31 AM, Sebastian Holtermann wrote:
> >>> 2) Use libuv instead
> >
> > I just saw the libuv library in the CMake sources.
> >
> >> libuv for process management is on the list. I think it is waiting for
> >> porting to all of CMake's platforms to actually happen.
> >
> > Does that mean it's only there for some specific scenarios and shouldn't
> > be used in general?
>
> A goal is to eventually fully replace use of KWSys Process with libuv.
> I'd prefer not to make any major changes to KWSys Process in the meantime.
>
> Currently libuv is used only for the server mode, but soon it will be
> used for CTest too:
>
> https://gitlab.kitware.com/cmake/cmake/merge_requests/1455
>
> > Looks nice, but in AUTOMOC/UIC it's sufficient to just known which child
> > processes are running and to get a notification when one has finished.
>
> Use of libuv's process management for that would be good. It supports
> fully asynchronous operation and so can manage many child processes from
> one thread.
Okay.
Then I'm going to refactor cmQtAutoGeneratorMocUic
to use a libuv event loop internally.
-Sebastian
More information about the cmake-developers
mailing list