Code Monkey home page Code Monkey logo

Comments (4)

mingkuang-Chuyu avatar mingkuang-Chuyu commented on July 17, 2024

https://docs.microsoft.com/en-us/cpp/overview/cpp-conformance-improvements-2019?view=msvc-170#tls-guard-changes

TLS Guard changes
Previously, thread-local variables in DLLs weren't correctly initialized. Other than on the thread that loaded the DLL, they weren't initialized before first use on threads that existed before the DLL was loaded. This defect has now been corrected. Thread-local variables in such a DLL get initialized immediately before their first use on such threads.

This new behavior of testing for initialization on uses of thread-local variables may be disabled by using the /Zc:tlsGuards- compiler option. Or, by adding the [[msvc:no_tls_guard]] attribute to particular thread local variables.

由于2019更新了此功能,所以发生了这个问题,由于 VC_LTL_UCRT_CatchStateInParent 线程局部存储并不需要这种特性,而且VC-LTL其他代码也本身就做了保证,可以直接禁用此功能来进行兼容性修正。

from vc-ltl5.

mingkuang-Chuyu avatar mingkuang-Chuyu commented on July 17, 2024

另外注意,VC-LTL 4.0 原本没有这个问题,是因为添加了 /Zc:tlsGuards-,但是到了5.0,这个选项在迁徙过程中丢失。

from vc-ltl5.

mingkuang-Chuyu avatar mingkuang-Chuyu commented on July 17, 2024

https://github.com/Chuyu-Team/VC-LTL5/actions/runs/1609904453

下载式用一下,我查看了 obj,已经没有想过依赖了。

from vc-ltl5.

mingkuang-Chuyu avatar mingkuang-Chuyu commented on July 17, 2024

https://github.com/Chuyu-Team/VC-LTL5/releases/tag/v5.0.4-Beta2

from vc-ltl5.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.