Skip to content
Snippets Groups Projects
  • Guy Zana's avatar
    6af9f16d
    rwlock: initial implementation for a rwlock · 6af9f16d
    Guy Zana authored
    this rwlock gives precedence to writers, it relies on a mutex and 2 condvars
    for it's implementation.
    
    it also supports taking the lock recursively for both readers and writers.
    
    this implementation is not fully tested but yet the TCP stack uses it
    extensively, so far without any seen races (tested TCPDownload and netperf).
    6af9f16d
    History
    rwlock: initial implementation for a rwlock
    Guy Zana authored
    this rwlock gives precedence to writers, it relies on a mutex and 2 condvars
    for it's implementation.
    
    it also supports taking the lock recursively for both readers and writers.
    
    this implementation is not fully tested but yet the TCP stack uses it
    extensively, so far without any seen races (tested TCPDownload and netperf).