Fix synchronization when detaching network interfaces
commit0d180916228650d435205894eeeebbdb00ab9437
authorMattias Nissler <mattias.nissler@gmx.de>
Sun, 16 Mar 2008 21:13:05 +0000 (16 22:13 +0100)
committerMattias Nissler <mattias.nissler@gmx.de>
Sun, 16 Mar 2008 21:13:05 +0000 (16 22:13 +0100)
treeed7225e56d45e82eb6e00c0d813489c2bcbdc9ee
parent64cdedc8ba6580958d4d21a4994668f48c38442f
Fix synchronization when detaching network interfaces

Use a proper wait condition for synchronization when detaching the network
interface. The old code would crash if the if_detached() handler was called
from a different thread than unregister_interface().
tuntap/Changelog
tuntap/src/lock.cc
tuntap/src/lock.h
tuntap/src/tuntap.cc
tuntap/src/tuntap.h