Hi Ozaki!

On Fr, 14 Okt 2016, Ozaki Kiichi wrote:

> Hi.
> Currently, vim checks ended-job every 10 second; thus exit_cb is delayed
> 10 seconds at the maximum.
> I propose the following:
> https://gist.github.com/ichizok/fe9743f46822a9015ed2f7d65238c5db
> os_unix: check by waitpid(-1, _, WNOHANG).
> os_win32: check by WaitForMultipleObjects(),
> "the number of active jobs" / MAXIMUM_WAIT_OBJECTS (==64) times.
> They suppress the count of calling syscall to be nearly constant regardless
> of the number of active jobs.
> # I set MAX_ENDED_JOB_COUNT (the maximum number of detections
> # in job_check_ended()) to 8, but this may require consideration.
> Thank you.

Does that fix #1155?

Nichts auf der Welt ist so gerecht verteilt wie der Verstand. Denn
jedermann ist überzeugt, daß er genug davon habe.
                -- René Descartes (1596-1650) 

You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui