syncany-team team mailing list archive
-
syncany-team team
-
Mailing list archive
-
Message #00617
Re: Operation Design
Le mardi 10 décembre 2013, Philipp Heckel a écrit :
> Hi Vincent,
>
> > juste a quick thought on watchOperation.
> >
> > Shouldn't we define LongRunningOperation with AtomicBoolean running
> > parameter which could be set to false in order to pause the operation ?
> >
> > This could also allow us to monitor which watchOperations are running.
> >
>
> Good idea. How do you suggest to pause the operation?
>
> I'd externalize the "while(true)" loop in a separate thread and replace
> it with "while(isActive)". When the thread is paused, I'd set the
> isActive to false. To "start"/"unpause", a new thread is started.
>
> If you want, feel free to implement that. :-)
>
> Perfect
> Best
> Philipp
>
>
> --
> Mailing list: https://launchpad.net/~syncany-team
> Post to : syncany-team@xxxxxxxxxxxxxxxxxxx <javascript:;>
> Unsubscribe : https://launchpad.net/~syncany-team
> More help : https://help.launchpad.net/ListHelp
>
--
Vincent Wiencek
vwiencek@xxxxxxxxx
References