1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-08 04:30:45 -08:00
emacs/test/lisp
Fabrice Popineau 326fff41fa Improve w32notify notifications
* src/w32notify.c (DIRWATCH_BUFFER_SIZE): New macro.
(struct notification): 'terminate' is now a HANDLE.
(send_notifications): Argument is now a pointer to a
notification.  Don't loop waiting for the notification to be
acknowledged by the main thread; instead, just add the
notification to the linked list of notifications waiting to be
acknowledged.
(watch_end): Don't close the directory handle.
(watch_completion): Allocate a new notification structure to be
added to the notifications set.  Call ReadDirectoryChangesW
immediately after adding the new notification, and before sending
a message to the main thread about them.
(watch_worker): Don't loop calling ReadDirectoryChangesW; instead,
call it just once -- it will be called again in watch_completion.
Loop waiting for the main thread's indication to terminate.
(start_watching): Create the event to be used to indicate to the
worker thread that its should terminate.
(remove_watch): Indicate to the worker thread that it should
terminate.
* src/w32term.c (queue_notifications): Loop over all the
notifications in the linked list, processing all of them in one
go.
* src/w32inevt.c (handle_file_notifications): Loop over all the
notifications in the linked list.
* src/w32xfns.c (init_crit): Initialize the linked list of file
notifications.
(delete_crit): Free the linked list of file notifications,
including any unprocessed notifications left in it.
* src/w32term.h (struct notifications_se): New struct.

* test/lisp/filenotify-tests.el (file-notify-test02-events)
(file-notify-test05-dir-validity): Add read-event calls to
facilitate event recognition by the main thread in batch mode.
2016-03-19 14:44:53 +02:00
..
calc Merge from origin/emacs-25 2016-01-11 22:48:07 -08:00
calendar Remove buggy parse-time test 2016-03-02 17:00:05 +00:00
emacs-lisp Move cl-seq-tests to the right place after the merge 2016-03-04 09:09:07 +00:00
eshell Merge from origin/emacs-25 2016-01-11 22:48:07 -08:00
gnus Move low-level library files from the lisp/gnus directory 2016-02-24 13:04:03 +11:00
international Merge from origin/emacs-25 2016-01-11 22:48:07 -08:00
legacy - 2016-01-18 22:56:33 -08:00
mail ; Add 2016 to copyright years for files not in emacs-25 branch 2016-01-12 16:20:00 -05:00
net Don't run ipv6 test on systems without ipv6 2016-03-05 17:04:33 +01:00
progmodes Merge from origin/emacs-25 2016-03-11 13:33:32 -08:00
textmodes Merge from origin/emacs-25 2016-01-11 22:48:07 -08:00
url * test/lisp/url/url-auth-tests.el (url-auth-test-digest-auth): 2016-02-12 21:18:13 -05:00
vc Make use of the `ert-with-function-mocked' macro 2016-02-23 14:46:56 +11:00
abbrev-tests.el Merge from origin/emacs-25 2016-01-11 22:48:07 -08:00
auth-source-tests.el Move low-level library files from the lisp/gnus directory 2016-02-24 13:04:03 +11:00
autorevert-tests.el Merge missing commit from emacs-25 branch 2016-01-12 10:37:06 +01:00
character-fold-tests.el Merge from origin/emacs-25 2016-01-11 22:48:07 -08:00
comint-tests.el Merge from origin/emacs-25 2016-01-11 22:48:07 -08:00
dabbrev-tests.el * test/lisp/dabbrev-tests.el: Merge fix: move here from test/automated. 2016-03-16 08:58:10 -07:00
descr-text-tests.el Merge from origin/emacs-25 2016-01-11 22:48:07 -08:00
dired-tests.el ; Add 2016 to copyright years for files not in emacs-25 branch 2016-01-12 16:20:00 -05:00
electric-tests.el Merge from origin/emacs-25 2016-01-11 22:48:07 -08:00
epg-tests.el Merge from origin/emacs-25 2016-01-11 22:48:07 -08:00
faces-tests.el Merge from origin/emacs-25 2016-01-11 22:48:07 -08:00
filenotify-tests.el Improve w32notify notifications 2016-03-19 14:44:53 +02:00
help-fns-tests.el Merge from origin/emacs-25 2016-01-11 22:48:07 -08:00
htmlfontify-tests.el ; Add 2016 to copyright years for files not in emacs-25 branch 2016-01-12 16:20:00 -05:00
ibuffer-tests.el ; Add 2016 to copyright years for files not in emacs-25 branch 2016-01-12 16:20:00 -05:00
imenu-tests.el Merge from origin/emacs-25 2016-01-11 22:48:07 -08:00
info-xref-tests.el Merge from origin/emacs-25 2016-01-11 22:48:07 -08:00
isearch-tests.el Merge from origin/emacs-25 2016-01-11 22:48:07 -08:00
json-tests.el Merge from origin/emacs-25 2016-01-11 22:48:07 -08:00
man-tests.el Merge from origin/emacs-25 2016-01-11 22:48:07 -08:00
minibuffer-tests.el Merge from origin/emacs-25 2016-01-11 22:48:07 -08:00
obarray-tests.el Merge from origin/emacs-25 2016-01-11 22:48:07 -08:00
ps-print-tests.el ; Add 2016 to copyright years for files not in emacs-25 branch 2016-01-12 16:20:00 -05:00
replace-tests.el Merge from origin/emacs-25 2016-01-11 22:48:07 -08:00
simple-tests.el Merge from origin/emacs-25 2016-01-11 22:48:07 -08:00
sort-tests.el Merge from origin/emacs-25 2016-01-11 22:48:07 -08:00
subr-tests.el Merge from origin/emacs-25 2016-01-11 22:48:07 -08:00
thingatpt-tests.el Merge from origin/emacs-25 2016-01-11 22:48:07 -08:00
xml-tests.el Merge from origin/emacs-25 2016-03-11 13:32:13 -08:00