diff options
author | Eli Zaretskii <eliz@gnu.org> | 2019-12-20 20:59:07 +0200 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2019-12-20 20:59:07 +0200 |
commit | 0e19b5d757d88eedd23709a4ea40aa1512a1ff21 (patch) | |
tree | 5ab479668337f979c29e41e9254fa609d463391c /test/lisp/emacs-lisp/cl-generic-tests.el | |
parent | 85a60da92d4db5c87ecfa152501d246425550fc3 (diff) | |
download | emacs-0e19b5d757d88eedd23709a4ea40aa1512a1ff21.tar.gz emacs-0e19b5d757d88eedd23709a4ea40aa1512a1ff21.tar.bz2 emacs-0e19b5d757d88eedd23709a4ea40aa1512a1ff21.zip |
Support setting OS names of threads on MS-Windows
* src/w32fns.c (setup_w32_kbdhook): Don't initialize
is_debugger_present here...
(globals_of_w32fns): ...initialize it here. Also initialize
the new global variable set_thread_description.
* src/systhread.c: [WINDOWSNT] Include mbctype.h
(w32_set_thread_name): New function.
(MS_VC_EXCEPTION): New macro.
(THREADNAME_INFO, IsDebuggerPresent_Proc)
(SetThreadDescription_Proc): New typedefs.
(w32_beginthread_wrapper): Call w32_set_thread_name to set the
name of the new thread.
* src/thread.h (struct thread_state): New member thread_name.
* src/thread.c (Fmake_thread): Set the thread_name field of
the new thread object.
(run_thread): Free the thread_name member after the thread
exits.
Diffstat (limited to 'test/lisp/emacs-lisp/cl-generic-tests.el')
0 files changed, 0 insertions, 0 deletions