Skip to content
  • Deucе's avatar
    f36ddb9f
    Fix rwlock_unlock() and rwlock_rdlock() recursion. · f36ddb9f
    Deucе authored
    It would be nice to use TLS for the recusrion counter, but on Windows,
    it looks like TLS in threads created after the object is created is
    uninitialized, so we would need some kind of thread start hook thingie
    which just seems like too much work.
    
    Instead, rely on the old standby single-linked list to track.
    f36ddb9f
    Fix rwlock_unlock() and rwlock_rdlock() recursion.
    Deucе authored
    It would be nice to use TLS for the recusrion counter, but on Windows,
    it looks like TLS in threads created after the object is created is
    uninitialized, so we would need some kind of thread start hook thingie
    which just seems like too much work.
    
    Instead, rely on the old standby single-linked list to track.
Loading