diff options
| author | Po Lu | 2021-11-30 08:52:00 +0800 |
|---|---|---|
| committer | Po Lu | 2021-11-30 08:52:00 +0800 |
| commit | 105205c86bc082eb73b15d6329745e3629ab9431 (patch) | |
| tree | 39de5bf1a67acfed4b735a0b4460f95b84c79d04 /src/process.c | |
| parent | 127be1e8b3916279fb402f18aa63eeefb432f539 (diff) | |
| download | emacs-105205c86bc082eb73b15d6329745e3629ab9431.tar.gz emacs-105205c86bc082eb73b15d6329745e3629ab9431.zip | |
Get rid of pgtk_select and use xg_select instead
* src/pgtkmenu.c (pgtk_menu_wait_for_event): Get rid
of pgtk_select.
* src/pgtkterm.h (pgtk_select):
* src/pgtkterm.c (pgtk_select): Delete function.
* src/process.c (wait_reading_process_output): Stop
using pgtk_select.
Diffstat (limited to 'src/process.c')
| -rw-r--r-- | src/process.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/process.c b/src/process.c index eb27ddef45f..241ffe9a8dd 100644 --- a/src/process.c +++ b/src/process.c | |||
| @@ -5588,19 +5588,17 @@ wait_reading_process_output (intmax_t time_limit, int nsecs, int read_kbd, | |||
| 5588 | timeout = make_timespec (0, 0); | 5588 | timeout = make_timespec (0, 0); |
| 5589 | #endif | 5589 | #endif |
| 5590 | 5590 | ||
| 5591 | #if defined HAVE_PGTK | 5591 | #if !defined USABLE_SIGIO && !defined WINDOWSNT |
| 5592 | nfds = pgtk_select (max_desc + 1, | ||
| 5593 | &Available, (check_write ? &Writeok : 0), | ||
| 5594 | NULL, &timeout, NULL); | ||
| 5595 | #elif !defined USABLE_SIGIO && !defined WINDOWSNT | ||
| 5596 | /* If we're polling for input, don't get stuck in select for | 5592 | /* If we're polling for input, don't get stuck in select for |
| 5597 | more than 25 msec. */ | 5593 | more than 25 msec. */ |
| 5598 | struct timespec short_timeout = make_timespec (0, 25000000); | 5594 | struct timespec short_timeout = make_timespec (0, 25000000); |
| 5599 | if ((read_kbd || !NILP (wait_for_cell)) | 5595 | if ((read_kbd || !NILP (wait_for_cell)) |
| 5600 | && timespec_cmp (short_timeout, timeout) < 0) | 5596 | && timespec_cmp (short_timeout, timeout) < 0) |
| 5601 | timeout = short_timeout; | 5597 | timeout = short_timeout; |
| 5602 | #elif defined HAVE_GLIB && !defined HAVE_NS | 5598 | #endif |
| 5599 | |||
| 5603 | /* Non-macOS HAVE_GLIB builds call thread_select in xgselect.c. */ | 5600 | /* Non-macOS HAVE_GLIB builds call thread_select in xgselect.c. */ |
| 5601 | #if defined HAVE_GLIB && !defined HAVE_NS | ||
| 5604 | nfds = xg_select (max_desc + 1, | 5602 | nfds = xg_select (max_desc + 1, |
| 5605 | &Available, (check_write ? &Writeok : 0), | 5603 | &Available, (check_write ? &Writeok : 0), |
| 5606 | NULL, &timeout, NULL); | 5604 | NULL, &timeout, NULL); |