V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
josephok
V2EX  ›  Linux

errno 是如何实现线程安全的?

  •  
  •   josephok · Jan 5, 2015 · 3393 views
    This topic created in 4129 days ago, the information mentioned may be changed or developed.
    3 replies    2015-01-06 20:08:25 +08:00
    songco
        1
    songco  
       Jan 5, 2015
    linux下是thread-local的, posix某个版本开始好像也有类似的定义.
    flewover
        2
    flewover  
       Jan 5, 2015
    [Thread-safety and POSIX.1](http://www.unix.org/whitepapers/reentrant.html)

    Redefinition of errno 那部分
    c4pt0r
        3
    c4pt0r  
       Jan 6, 2015
    thread local
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1043 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 46ms · UTC 23:19 · PVG 07:19 · LAX 16:19 · JFK 19:19
    ♥ Do have faith in what you're doing.