summaryrefslogtreecommitdiffstats
path: root/lib/libform/fty_regex.c
diff options
context:
space:
mode:
authordlg <dlg@openbsd.org>2015-01-23 12:41:23 +0000
committerdlg <dlg@openbsd.org>2015-01-23 12:41:23 +0000
commitbef976591be8739534d2f3f6a760bba91b4a6a46 (patch)
tree1920ad376063d2573389474024439acd1d95ef94 /lib/libform/fty_regex.c
parentget the args right for the fallback atomic_{cas,swap}_ptr (diff)
downloadwireguard-openbsd-bef976591be8739534d2f3f6a760bba91b4a6a46.tar.xz
wireguard-openbsd-bef976591be8739534d2f3f6a760bba91b4a6a46.zip
move from deferring vd requests with a task per message to a ring
of pointers to vd requests, and a single task to notify the taskq that there's work on the ring. the ring is modelled on what you usually get with network cards, which is an array with a producer and consumer index. the interrupt handler fills an entry in the ring at the producers index and increments it. the task reads entries at the consumer index and increments it until it reaches the same value as the producer. tested and slightly tweaked by kettenis@ ok kettenis@
Diffstat (limited to 'lib/libform/fty_regex.c')
0 files changed, 0 insertions, 0 deletions