[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] trunk r116873: Speed up thread startup on MS-Windows.
From: |
Eli Zaretskii |
Subject: |
[Emacs-diffs] trunk r116873: Speed up thread startup on MS-Windows. |
Date: |
Tue, 25 Mar 2014 16:01:12 +0000 |
User-agent: |
Bazaar (2.6b2) |
------------------------------------------------------------
revno: 116873
revision-id: address@hidden
parent: address@hidden
committer: Eli Zaretskii <address@hidden>
branch nick: trunk
timestamp: Tue 2014-03-25 18:00:37 +0200
message:
Speed up thread startup on MS-Windows.
src/w32.c (w32_delayed_load): Call DisableThreadLibraryCalls on the
DLL handle, to speed up thread startup.
modified:
src/ChangeLog changelog-20091113204419-o5vbwnq5f7feedwu-1438
src/w32.c w32.c-20091113204419-o5vbwnq5f7feedwu-808
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog 2014-03-25 14:43:26 +0000
+++ b/src/ChangeLog 2014-03-25 16:00:37 +0000
@@ -1,3 +1,8 @@
+2014-03-25 Eli Zaretskii <address@hidden>
+
+ * w32.c (w32_delayed_load): Call DisableThreadLibraryCalls on the
+ DLL handle, to speed up thread startup.
+
2014-03-25 Paul Eggert <address@hidden>
Handle sigmask better with nested signal handlers (Bug#15561).
=== modified file 'src/w32.c'
--- a/src/w32.c 2014-03-10 17:31:17 +0000
+++ b/src/w32.c 2014-03-25 16:00:37 +0000
@@ -8702,6 +8702,13 @@
/* 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;
}
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] trunk r116873: Speed up thread startup on MS-Windows.,
Eli Zaretskii <=