Skip to content

core(tls): handle process termination / cleanup issues#20014

Merged
opencv-pushbot merged 1 commit intoopencv:3.4from
alalek:fix_core_tls_process_termination
Apr 30, 2021
Merged

core(tls): handle process termination / cleanup issues#20014
opencv-pushbot merged 1 commit intoopencv:3.4from
alalek:fix_core_tls_process_termination

Conversation

@alalek
Copy link
Copy Markdown
Member

@alalek alalek commented Apr 30, 2021

relates #15812
relates #19886

requires for merging #19755

Observed Win10 code flow for FLS storage:

  • main on return calls ExitProcess() which terminates all threads (process state become inconsistent)
  • called fls callback for the "main" thread
  • called DllMain with DLL_PROCESS_DETACH
  • called fls callbacks for other threads if any

@alalek
Copy link
Copy Markdown
Member Author

alalek commented Apr 30, 2021

👍

@opencv-pushbot opencv-pushbot merged commit f78cebf into opencv:3.4 Apr 30, 2021
@alalek alalek mentioned this pull request May 1, 2021
@alalek alalek mentioned this pull request Jun 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants