Re: cancelling queued items
[email protected] (Brian Duggan) Wed, 21 Mar 2007 14:21:40 -0400
| Newsgroups | perl.ipc.dirqueue |
|---|---|
| Message-ID | <[email protected]> |
--wRRV7LY7NUeQGEoC
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
On Wednesday, March 21, Justin Mason wrote:
> It sounds pretty good -- just one thing -- how is a caller supposed to get
> the datapath? Presumably they don't construct it themselves...
From the $job object (obtainable by sending a callback
to visit_all_jobs()). Though actually, it looks like using
$job->{pathqueue} instead of the datapath might be easier,
so that pickup_queued_job() doesn't have to read the
queuefile (to find out the datapath).
> that's ok, that suggestion is a one-liner. Having said that -- a test case
> "t" script would rock though :)
Okay, I've attached one.
thanks!
Brian
ps On a separate note, I noticed that read_control_file() is always
called with two arguments, but the second argument is ignored. Is
this perhaps an alternative to saying 'local *IN' in read_control_file()?
--wRRV7LY7NUeQGEoC--