• Dominik Charousset's avatar
    Use RW lock for AID instead of __thread variable · 079f6372
    Dominik Charousset authored
    Store actor IDs in an unordered map protected via RW lock instead of using a
    non-portable `__thread` variable. Though this is less efficient, the
    performance overhead is still negligible compared to the overall cost of
    enabling logging in the first place. Close #258; a more generic
    `thread_specific_ptr` implementation turned out have too much implementation
    overhead to be worth the effort.
    079f6372
logging.cpp 7.42 KB