List Info

Thread: Re: KDE/kdevelop/lib/plugins/vcs/interfaces




Re: KDE/kdevelop/lib/plugins/vcs/interfaces
user name
2007-05-29 11:58:13
On 29.05.07 12:42:56, dukju ahn wrote:
> > >>> SVN commit 668891 by apaku:
> > >>>
> > >>> add exec() which runs the job in a
synchronous way
> 
> > Right. Btw, whatever happened to wait()? Should we
have exec(), wait()
> > or both? (Note: exec() == start()+wait() if we
have wait().)
> 
> exec() blocks when it start job. So I don't think we
need wait().
> Also exec() exists in KJob and what it does it start()
+ wait(). Considering
> that CVSJob and SvnJob already subclasses KJob, I think
wait() is not needed.

I agree with dukju here. Actually I wanted to add wait() and
looked at
what methods KJob provides and saw exec() so I went for
this. Reason is
simply that a user of our API doesn't need two calls to
execute
synchronously. The only downside of this is if a user wants
to start and
later on decides to wait() for the end. But I'd say we can
wait until
there's a use-case for that and then provide wait() if
needed.

Andreas

-- 
If you learn one useless thing every day, in a single year
you'll learn
365 useless things.

_______________________________________________
KDevelop-devel mailing list
KDevelop-develkdevelop.org
https://barney.cs.uni-potsdam.de/mailman/listinf
o/kdevelop-devel

Re: KDE/kdevelop/lib/plugins/vcs/interfaces
country flaguser name
United States
2007-05-29 13:45:54
Andreas Pakulat wrote:
> On 29.05.07 12:42:56, dukju ahn wrote:
>> exec() blocks when it start job. So I don't think
we need wait().
>> Also exec() exists in KJob and what it does it
start() + wait(). Considering
>> that CVSJob and SvnJob already subclasses KJob, I
think wait() is not needed.
> 
> I agree with dukju here.

Ok, no objection, was just checking.

>  The only downside of this is if a user wants to start
and
> later on decides to wait() for the end.

Right, that's what I was thinking.

> But I'd say we can wait until
> there's a use-case for that and then provide wait() if
needed.

Sounds like a plan. 

-- 
Matthew
"A mouse is a device used to point at the xterm you
want to type in."
   --Kim Alm, A.S.R.


_______________________________________________
KDevelop-devel mailing list
KDevelop-develkdevelop.org
https://barney.cs.uni-potsdam.de/mailman/listinf
o/kdevelop-devel

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )