diff options
author | 2012-10-07 17:21:37 +0000 | |
---|---|---|
committer | 2012-10-07 17:21:37 +0000 | |
commit | 81781bd8a48fc0955f9274c7795ddeb919b1198d (patch) | |
tree | 79284aad4800cd4508f8ecf24dbf5b276be3f188 /sys/dev/pci/sili_pci.c | |
parent | We need to provide a sendmail-like interface to makemap so that some tools (diff) | |
download | wireguard-openbsd-81781bd8a48fc0955f9274c7795ddeb919b1198d.tar.xz wireguard-openbsd-81781bd8a48fc0955f9274c7795ddeb919b1198d.zip |
Implement a simple wait queue API. The idea is to allow multiple "waiters"
to wait on the same "tag" for a deferred result.
A waiter is a callback and a void *argument. The first waiter (the one for
which waitq_wait() returns true) is supposed to run some code that leads to
waitq_run() being run, which will destroy that waitq and call all callbacks
in turn.
Not used at the moment, but will be soon.
ok gilles@ chl@
Diffstat (limited to 'sys/dev/pci/sili_pci.c')
0 files changed, 0 insertions, 0 deletions