diff options
| author | Eli Zaretskii | 2012-09-30 17:49:05 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2012-09-30 17:49:05 +0200 |
| commit | c06c382ae494c4129da43f2c1ea0f72e39a45bf1 (patch) | |
| tree | 653f7b01aa6f0d91495440a111e8198273aa28e6 /src/ChangeLog | |
| parent | 8223b1d23361b74ede10bac47974ce7803804380 (diff) | |
| download | emacs-c06c382ae494c4129da43f2c1ea0f72e39a45bf1.tar.gz emacs-c06c382ae494c4129da43f2c1ea0f72e39a45bf1.zip | |
Support atimers and CPU profiler via profile.c on MS-Windows.
src/w32proc.c (sig_mask, crit_sig): New static variables.
(sys_signal): Support SIGALRM and SIGPROF.
(sigemptyset, sigaddset, sigfillset, sigprocmask)
(pthread_sigmask, setpgrp): Moved here from w32.c. sigaddset,
sigfillset, and sigprocmask are no longer no-ops.
(sigismember): New function.
(struct itimer_data): New definition.
(ticks_now, real_itimer, prof_itimer, clocks_min, crit_real)
(crit_prof): New static variables.
(MAX_SINGLE_SLEEP): New definition.
(timer_loop, stop_timer_thread, term_timers, init_timers)
(start_timer_thread, getitimer, setitimer): New functions.
(alarm): No longer a no-op, calls setitimer.
src/w32.c (term_ntproc): Call term_timers.
(init_ntproc): Make sure all signals are unblocked at startup, to
erase any traces of dumping. Call init_timers.
src/w32fns.c (hourglass_timer, HOURGLASS_ID): Remove.
Windows-specific code to display the hourglass mouse pointer is no
longer used.
(w32_wnd_proc): Remove code that handled the WM_TIMER message due
to hourglass timer expiration.
(start_hourglass, cancel_hourglass, DEFAULT_HOURGLASS_DELAY):
Remove, no longer used.
(w32_note_current_window, show_hourglass, hide_hourglass): New
functions, in support of hourglass cursor display similar to other
window systems.
(syms_of_w32fns): Don't initialize hourglass_timer.
src/xdisp.c (start_hourglass, cancel_hourglass): Now used on
WINDOWSNT as well.
(start_hourglass) [WINDOWSNT]: Call w32_note_current_window.
src/w32.h (init_timers, term_timers): Add prototypes.
nt/inc/sys/time.h (ITIMER_REAL, ITIMER_PROF): Define.
(struct itimerval): Define.
(getitimer, setitimer): Add prototypes.
nt/inc/ms-w32.h <sigset_t> [_MSVC_VER]: Make the typedef consistent
with MinGW.
(SA_RESTART, SIGPROF): Define.
nt/config.nt (HAVE_SETITIMER): Define to 1.
Diffstat (limited to 'src/ChangeLog')
| -rw-r--r-- | src/ChangeLog | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 1f5ad1e6d05..504f8cbaed3 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,42 @@ | |||
| 1 | 2012-09-30 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | Support atimers and CPU profiler via profile.c on MS-Windows. | ||
| 4 | * w32proc.c (sig_mask, crit_sig): New static variables. | ||
| 5 | (sys_signal): Support SIGALRM and SIGPROF. | ||
| 6 | (sigemptyset, sigaddset, sigfillset, sigprocmask) | ||
| 7 | (pthread_sigmask, setpgrp): Moved here from w32.c. sigaddset, | ||
| 8 | sigfillset, and sigprocmask are no longer no-ops. | ||
| 9 | (sigismember): New function. | ||
| 10 | (struct itimer_data): New definition. | ||
| 11 | (ticks_now, real_itimer, prof_itimer, clocks_min, crit_real) | ||
| 12 | (crit_prof): New static variables. | ||
| 13 | (MAX_SINGLE_SLEEP): New definition. | ||
| 14 | (timer_loop, stop_timer_thread, term_timers, init_timers) | ||
| 15 | (start_timer_thread, getitimer, setitimer): New functions. | ||
| 16 | (alarm): No longer a no-op, calls setitimer. | ||
| 17 | |||
| 18 | * w32.c (term_ntproc): Call term_timers. | ||
| 19 | (init_ntproc): Make sure all signals are unblocked at startup, to | ||
| 20 | erase any traces of dumping. Call init_timers. | ||
| 21 | |||
| 22 | * w32fns.c (hourglass_timer, HOURGLASS_ID): Remove. | ||
| 23 | Windows-specific code to display the hourglass mouse pointer is no | ||
| 24 | longer used. | ||
| 25 | (w32_wnd_proc): Remove code that handled the WM_TIMER message due | ||
| 26 | to hourglass timer expiration. | ||
| 27 | (start_hourglass, cancel_hourglass, DEFAULT_HOURGLASS_DELAY): | ||
| 28 | Remove, no longer used. | ||
| 29 | (w32_note_current_window, show_hourglass, hide_hourglass): New | ||
| 30 | functions, in support of hourglass cursor display similar to other | ||
| 31 | window systems. | ||
| 32 | (syms_of_w32fns): Don't initialize hourglass_timer. | ||
| 33 | |||
| 34 | * xdisp.c (start_hourglass, cancel_hourglass): Now used on | ||
| 35 | WINDOWSNT as well. | ||
| 36 | (start_hourglass) [WINDOWSNT]: Call w32_note_current_window. | ||
| 37 | |||
| 38 | * w32.h (init_timers, term_timers): Add prototypes. | ||
| 39 | |||
| 1 | 2012-09-30 Kenichi Handa <handa@gnu.org> | 40 | 2012-09-30 Kenichi Handa <handa@gnu.org> |
| 2 | 41 | ||
| 3 | * coding.c (decode_coding_ccl, encode_coding_ccl): Pay attention | 42 | * coding.c (decode_coding_ccl, encode_coding_ccl): Pay attention |