Speed up thread startup on MS-Windows.
src/w32.c (w32_delayed_load): Call DisableThreadLibraryCalls on the DLL handle, to speed up thread startup.
This commit is contained in:
parent
1e952f0a7a
commit
defd53bdc5
2 changed files with 12 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
2014-03-25 Eli Zaretskii <eliz@gnu.org>
|
||||
|
||||
* w32.c (w32_delayed_load): Call DisableThreadLibraryCalls on the
|
||||
DLL handle, to speed up thread startup.
|
||||
|
||||
2014-03-25 Paul Eggert <eggert@cs.ucla.edu>
|
||||
|
||||
Handle sigmask better with nested signal handlers (Bug#15561).
|
||||
|
|
|
@ -8702,6 +8702,13 @@ w32_delayed_load (Lisp_Object library_id)
|
|||
/* Possibly truncated */
|
||||
? make_specified_string (name, -1, len, 1)
|
||||
: Qnil);
|
||||
/* This prevents thread start and end notifications
|
||||
from being sent to the DLL, for every thread we
|
||||
start. We don't need those notifications because
|
||||
threads we create never use any of these DLLs, only
|
||||
the main thread uses them. This is supposed to
|
||||
speed up thread creation. */
|
||||
DisableThreadLibraryCalls (dll_handle);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue