Switch to read-write-locks for tt_mutex
commitf4352a7fa120e9fbc0f061542b9e2f6ca5df0ae5
authorMattias Nissler <mattias.nissler@gmx.de>
Wed, 2 Sep 2009 23:37:13 +0000 (3 01:37 +0200)
committerMattias Nissler <mattias.nissler@gmx.de>
Wed, 2 Sep 2009 23:37:13 +0000 (3 01:37 +0200)
tree421968fad3de276c5e2fd2023e326e893f51cb36
parent5b626a7781beb9474c86911178b781cca38ba4b7
Switch to read-write-locks for tt_mutex

The lck_mtx_unlock function is now aliased in the Leopard kernel
headers. In order to avoid having to tinker with the declaration in
order to get the binary working on previous systems, we simply use
read-write-locks in exclusive mode.
tuntap/src/lock.cc
tuntap/src/lock.h
tuntap/src/tuntap.cc