diff options
| author | Mattias EngdegÄrd | 2020-01-07 17:08:25 +0100 |
|---|---|---|
| committer | Mattias EngdegÄrd | 2020-01-07 17:57:31 +0100 |
| commit | 73fd8a4b535928990f24702cdfaeeeceb6d33d3d (patch) | |
| tree | 56cd425a191c863f87cd4d2b0742464fea8b540a /src/bytecode.c | |
| parent | f54b24304decc52defbf12576993d746e02a80ee (diff) | |
| download | emacs-73fd8a4b535928990f24702cdfaeeeceb6d33d3d.tar.gz emacs-73fd8a4b535928990f24702cdfaeeeceb6d33d3d.zip | |
Fix BSD and macOS builds w.r.t. pthread_setname_np (bug#38632)
pthread_setname_np takes only a single argument on BSD and macOS,
and affects the current thread only.
* configure.ac: Add check for single-argument pthread_setname_np
* src/systhread.c (sys_thread_set_name): New (w32 and pthread versions).
(sys_thread_create): Remove name argument and name-setting.
(w32_beginthread_wrapper): Remove name-setting.
* src/systhread.h (sys_thread_create, sys_thread_set_name):
Update prototypes.
* src/thread.c (run_thread): Call sys_thread_set_name.
(Fmake_thread): Adapt call to sys_thread_create.
* src/thread.h (struct thread_state): Adjust comment.
Diffstat (limited to 'src/bytecode.c')
0 files changed, 0 insertions, 0 deletions