mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2026-02-04 07:34:51 +01:00
The sources of the Free Pascal compiler, RTL, packages and utilities.
See https://www.freepascal.org/ for more info.
- Do not call DLL hooks from exe callback handler. - Do not call SysInitMultitheading from DLL_THREAD_ATTACH handler, it may only be called from the main thread. See comments in syswin.inc for details. Reverts rev. 17892. + To guarantee that SysInitMultithreading is called from the main thread, assume executables always multithreaded, just like DLLs are. - Also removed all checks with MainThreadIdWin32, except checks for double DLL_PROCESS_DETACH in DLLs. They duplicate what Windows already does (the main thread invokes only PROCESS_ATTACH/PROCESS_DETACH and never THREAD_ATTACH/THREAD_DETACH callbacks). * Attempts to avoid double initialization/finalization (once in callback, second time in normal control flow). * Net result: webtbs/tw2423 and webtbs/tw15530 fixed, webtbs/tw3661 broken (because heaptrc does not support checking pointers in TLS area, and with 'always multithreaded' apps the Output varible moves into TLS). git-svn-id: trunk@17938 - |
||
|---|---|---|
| compiler | ||
| ide | ||
| installer | ||
| packages | ||
| rtl | ||
| tests | ||
| utils | ||
| .gitattributes | ||
| .gitignore | ||
| Makefile | ||
| Makefile.fpc | ||