[Twisted-Python] thread synchronization

Christopher Armstrong radix at twistedmatrix.com
Sat Feb 3 13:16:03 EST 2007


On 2/3/07, Lee Connell <lee.a.connell at gmail.com> wrote:
> While using Twisted, do I have to worry about locking objects to prevent
> multiple threads from accessing the object?  >From what I've read Twisted
> doesn't use a thread for each socket, so I would guess I don't have to worry
> about thread locking?

Indeed. Unless you are creating and using threads *yourself*, you
don't need to worry about this manner of locking.


-- 
Christopher Armstrong
International Man of Twistery
http://radix.twistedmatrix.com/
http://twistedmatrix.com/
http://canonical.com/




More information about the Twisted-Python mailing list