[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Query termination clariffication



Arie Shoshani wrote:
> 
> > I agree that if ~QO occurs on a "paused" query, then
> > "abort" should be sent not "done".
> 
> Jeff, what is a "paused" query?  What do you mean by ~QO?

First: I think I started with writing ~QO(), sorry. It is C++ and means
a function that gets called when an object is destroyed (e.g., when an
(automatic) object goes out of scope). That function is called the
"destructor" of the object, or dtor for short. There is a corresponding
function called a "consructor" (ctor) which is called when an object is
created. The name of the ctor is the same as the name of the class or
struct it belongs to.

paused: The QO and QE have a pause() function in their interfaces. If
the user knows it can't handle more events for a while (for some reason)
then she can pause() execution of a query. No more files are cached for
that query until resume() is called.
It is like an abort() with a possibility to unabort(). (The query token
is still valid of course.)

 - Henrik