diff options
author | 2015-09-29 10:52:22 +0000 | |
---|---|---|
committer | 2015-09-29 10:52:22 +0000 | |
commit | f89b44584fb1c3fa1e5ab0c1e09ee4b765397ff6 (patch) | |
tree | 748ad861dc5a349798a04267c4ec75853018540c /lib/libtls/tls_client.c | |
parent | clean some ugly intendation warts (diff) | |
download | wireguard-openbsd-f89b44584fb1c3fa1e5ab0c1e09ee4b765397ff6.tar.xz wireguard-openbsd-f89b44584fb1c3fa1e5ab0c1e09ee4b765397ff6.zip |
get rid of the mutex between access to the status block and myx_down
myx is unusual in that it has an explicit command to shut down the
chip that gets an interrupt when it's done. so myx_down sends the
command and has to sleep until it gets that interrupt. this moves
to using a single int to represent that state (so loads and stores
are atomic), and sleep_setup/sleep_finish in myx_down to wait for
it to change.
this has been running in production at work for a few months now
tested by chris@
Diffstat (limited to 'lib/libtls/tls_client.c')
0 files changed, 0 insertions, 0 deletions