Forked from
Knot projects / Knot DNS
19485 commits behind the upstream repository.
Lubos Slovak
authored
Added structure irwl_table which holds table of locks (type irwl_lock) of arbitrary items identified by a pointer. Implemented read locking, write locking, unlocking, creation and destruction of the structure. Implementation uses mutex associated with the table to prevent race conditions while locking/unlocking.