Re: Cleanup callbacks in IvyContext?

2014-01-09 Thread Nicolas Lalevée
Le 9 janv. 2014 à 19:43, Charles Duffy a écrit : > On Thu, Jan 9, 2014 at 12:17 PM, Nicolas Lalevée > wrote: > >> Yep, a quite hard problem to resolve. At the ant task level I don't know >> how you could nail it without asking the end user to call some ivy:lock >> task. >> > > I'd like to arg

Re: Cleanup callbacks in IvyContext?

2014-01-09 Thread Charles Duffy
On Thu, Jan 9, 2014 at 12:17 PM, Nicolas Lalevée wrote: > Yep, a quite hard problem to resolve. At the ant task level I don't know > how you could nail it without asking the end user to call some ivy:lock > task. > I'd like to argue that for ant tasks, a default behavior of releasing locks only

Re: Cleanup callbacks in IvyContext?

2014-01-09 Thread Nicolas Lalevée
Le 8 janv. 2014 à 16:47, Charles Duffy a écrit : > Apologies about the delay before providing a full reply -- I was > unexpectedly stuck in Chicago without my laptop. No worries, I am myself usually random in my response time, due to my sparse free time. > The problem with the LockStrategy in

Re: Cleanup callbacks in IvyContext?

2014-01-08 Thread Charles Duffy
Apologies about the delay before providing a full reply -- I was unexpectedly stuck in Chicago without my laptop. The problem with the LockStrategy interface is that it's too fine-grained for the use case wherein a read lock needs to be held for the duration of a high-level operation. Consider th

Re: Cleanup callbacks in IvyContext?

2014-01-04 Thread Charles Duffy
This is part of why I wouldn't give it knowledge of locks specifically, but simply Runnable callbacks to invoke on pop -- not specifically tied to a single use case. This is not entirely unlike atExit calls available through the JVM, the standard C library, etc. Improving LockStrategy is a necessa

Re: Cleanup callbacks in IvyContext?

2014-01-04 Thread Nicolas Lalevée
Le 3 janv. 2014 à 22:28, Charles Duffy a écrit : > Howdy, all -- > > I'm trying to strengthen Ivy's locking system to make it strong enough to > allow ivy:clean at arbitrary times on systems which can have other actions > making use of the same shared caches. > > There are a few requirements t

Cleanup callbacks in IvyContext?

2014-01-03 Thread Charles Duffy
Howdy, all -- I'm trying to strengthen Ivy's locking system to make it strong enough to allow ivy:clean at arbitrary times on systems which can have other actions making use of the same shared caches. There are a few requirements to make this happen while still allowing multiple resolves (and lik