Re: [Twisted-Python] Shared resource manioulation example

2010-05-28 Thread Karl Anderson
On Fri, May 28, 2010 at 12:10 PM, wrote: > > Of course its up to me to determine if it's a data collision or not, > but I was thinking may be Twisted can provide me with some already > existing mechanism of its own. After all its already a pretty massive > and complicated framework with tons of c

Re: [Twisted-Python] Shared resource manioulation example

2010-05-28 Thread vitaly
Of course its up to me to determine if it's a data collision or not, but I was thinking may be Twisted can provide me with some already existing mechanism of its own. After all its already a pretty massive and complicated framework with tons of capabilities ... But I'd like to get back to the

Re: [Twisted-Python] Shared resource manioulation example

2010-05-28 Thread Nitro
Am 28.05.2010, 20:34 Uhr, schrieb : > hi, > > Callbacks serialization is clear to me. > > I'll try to rephrase the question: two requests are incoming for > reactor() > to handle. Each request has its own chain of callbacks. > At some point one of the requests need to update the same > global da

Re: [Twisted-Python] Shared resource manioulation example

2010-05-28 Thread vitaly
hi, Callbacks serialization is clear to me. I'll try to rephrase the question: two requests are incoming for reactor() to handle. Each request has its own chain of callbacks. At some point one of the requests need to update the same global data structure, and another request need to delete from t

Re: [Twisted-Python] Shared resource manioulation example

2010-05-28 Thread John Santos
On Fri, 28 May 2010 vit...@synapticvision.com wrote: > Hi, > > I'm looking for a Twisted based example how > it should be properly done update/delete of global dictionary's > SAME key:value pair from different functions all together. > Or by another words, two functions are trying to update the s

Re: [Twisted-Python] Shared resource manioulation example

2010-05-28 Thread vitaly
Thank you for reply. I'm calling each update/delete function as a separate Deferred, no explicit threads on those functions. OK than, let's complicated it a bit with "dictionary of lists of dictionaries" instead of simple dictionary and let's put it all under reactor(). There are 2 incomi

Re: [Twisted-Python] Shared resource manioulation example

2010-05-28 Thread Allen Short
On Fri, May 28, 2010 at 8:46 AM, wrote: > I'm looking for a Twisted based example how > it should be properly done update/delete of global dictionary's > SAME key:value pair from different functions all together. > Or by another words, two functions are trying to update the same > key:value pair