diff options
author | Eric Faurot <eric@cvs.openbsd.org> | 2012-08-08 08:50:43 +0000 |
---|---|---|
committer | Eric Faurot <eric@cvs.openbsd.org> | 2012-08-08 08:50:43 +0000 |
commit | 4fb538ff7fe692fc3494a906f82178b14bf48bf1 (patch) | |
tree | 74c2a8e0bb894841c747e6bee85be58c05869135 /usr.sbin/adduser | |
parent | e653821d1952b330839a2b474720109458d1d375 (diff) |
Improve the scheduler backend API.
New envelopes are pushed into the scheduler through the insert()
commit() rollback() transactional interface functions.
Worklists are pulled from the scheduler through a single batch()
interface function, which returns a list of envelope ids and the
type of processing. Envelopes returned in this batch are said to
be "in-flight", as opposed to "pending". They are supposed to be
processed in some way, and either updated() or deleted() at some
point.
The schedule()/remove() functions are used to alter the internal
state of "pending" envelopes to make them schedulable. The enve-
lopes will be part of a worklist on the next call to batch().
Rewrite the scheduler_ramqueue backend.
The initial queue loading in now done by the queue.
ok gilles@
Diffstat (limited to 'usr.sbin/adduser')
0 files changed, 0 insertions, 0 deletions