mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-08 04:30:45 -08:00
* 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. |
||
|---|---|---|
| .. | ||
| calc | ||
| calendar | ||
| emacs-lisp | ||
| eshell | ||
| gnus | ||
| international | ||
| legacy | ||
| net | ||
| progmodes | ||
| textmodes | ||
| url | ||
| vc | ||
| abbrev-tests.el | ||
| auth-source-tests.el | ||
| autorevert-tests.el | ||
| character-fold-tests.el | ||
| comint-tests.el | ||
| dabbrev-tests.el | ||
| descr-text-tests.el | ||
| dired-tests.el | ||
| electric-tests.el | ||
| epg-tests.el | ||
| faces-tests.el | ||
| filenotify-tests.el | ||
| help-fns-tests.el | ||
| htmlfontify-tests.el | ||
| ibuffer-tests.el | ||
| imenu-tests.el | ||
| info-xref-tests.el | ||
| isearch-tests.el | ||
| json-tests.el | ||
| man-tests.el | ||
| minibuffer-tests.el | ||
| obarray-tests.el | ||
| ps-print-tests.el | ||
| replace-tests.el | ||
| simple-tests.el | ||
| sort-tests.el | ||
| subr-tests.el | ||
| thingatpt-tests.el | ||
| xml-tests.el | ||