[Twisted-Python] Re: [Twisted-commits] r13334 - Make log.err and log.msg actually threadsafe, by executing them in the
![](https://secure.gravatar.com/avatar/d7875f8cfd8ba9262bfff2bf6f6f9b35.jpg?s=120&d=mm&r=g)
On Tue, 2005-03-29 at 09:00 -0700, James Knight wrote:
I talked to glyph about this at some point, and he thought that we shouldn't do this, if you want to make observers thread safe you should do so yourself. I'm not sure I agree with glyph, though.
![](https://secure.gravatar.com/avatar/f5dc647e1f30b6127527da3dbfdaba73.jpg?s=120&d=mm&r=g)
If you make them threadsafe by marshalling to the reactor, is correct ordering still guaranteed ? Thomas Dave/Dina : future TV today ! - http://www.davedina.org/ <-*- thomas (dot) apestaart (dot) org -*-> But you never lost your beauty Although you lost your hope And you made no mistake you couldn't wash away with liar's tears pouring down your face <-*- thomas (at) apestaart (dot) org -*-> URGent, best radio on the net - 24/7 ! - http://urgent.fm/
![](https://secure.gravatar.com/avatar/7ed9784cbb1ba1ef75454034b3a8e6a1.jpg?s=120&d=mm&r=g)
On Wed, 30 Mar 2005 11:55:03 +0200, Thomas Vander Stichele <thomas@apestaart.org> wrote:
Calls to log.{msg,err} were already serialized, so I don't think any changes have been made to the order observers will be called with events. Another thing about the change, though, is that it makes Twisted even more broken on threadless platforms. *poke foom* Jp
![](https://secure.gravatar.com/avatar/7ed9784cbb1ba1ef75454034b3a8e6a1.jpg?s=120&d=mm&r=g)
On Wed, 30 Mar 2005 10:28:25 -0500, James Y Knight <foom@fuhm.net> wrote:
Except when it raises an exception, instead. :) I started on a bunch of threadless fixes. Now that 2.0 is out the door it might be time to pull them back into trunk. The code is in /branches/exarkun/threadless/ if anyone wants to look/contribute. Jp
![](https://secure.gravatar.com/avatar/7ed9784cbb1ba1ef75454034b3a8e6a1.jpg?s=120&d=mm&r=g)
On Thu, 31 Mar 2005 09:44:24 +1000, Andrew Bennetts <andrew-twisted@puzzling.org> wrote:
I don't think I understand the point of those modules. As far as I can tell they are almost never useful. For Twisted's main use (deferToThread), they definitely aren't. Even so, we still need to support 2.2 for a while. The branch I referred to mainly just disables functionality until the parts of Twisted that really don't care about threads work again. Jp
![](https://secure.gravatar.com/avatar/f5dc647e1f30b6127527da3dbfdaba73.jpg?s=120&d=mm&r=g)
If you make them threadsafe by marshalling to the reactor, is correct ordering still guaranteed ? Thomas Dave/Dina : future TV today ! - http://www.davedina.org/ <-*- thomas (dot) apestaart (dot) org -*-> But you never lost your beauty Although you lost your hope And you made no mistake you couldn't wash away with liar's tears pouring down your face <-*- thomas (at) apestaart (dot) org -*-> URGent, best radio on the net - 24/7 ! - http://urgent.fm/
![](https://secure.gravatar.com/avatar/7ed9784cbb1ba1ef75454034b3a8e6a1.jpg?s=120&d=mm&r=g)
On Wed, 30 Mar 2005 11:55:03 +0200, Thomas Vander Stichele <thomas@apestaart.org> wrote:
Calls to log.{msg,err} were already serialized, so I don't think any changes have been made to the order observers will be called with events. Another thing about the change, though, is that it makes Twisted even more broken on threadless platforms. *poke foom* Jp
![](https://secure.gravatar.com/avatar/7ed9784cbb1ba1ef75454034b3a8e6a1.jpg?s=120&d=mm&r=g)
On Wed, 30 Mar 2005 10:28:25 -0500, James Y Knight <foom@fuhm.net> wrote:
Except when it raises an exception, instead. :) I started on a bunch of threadless fixes. Now that 2.0 is out the door it might be time to pull them back into trunk. The code is in /branches/exarkun/threadless/ if anyone wants to look/contribute. Jp
![](https://secure.gravatar.com/avatar/7ed9784cbb1ba1ef75454034b3a8e6a1.jpg?s=120&d=mm&r=g)
On Thu, 31 Mar 2005 09:44:24 +1000, Andrew Bennetts <andrew-twisted@puzzling.org> wrote:
I don't think I understand the point of those modules. As far as I can tell they are almost never useful. For Twisted's main use (deferToThread), they definitely aren't. Even so, we still need to support 2.2 for a while. The branch I referred to mainly just disables functionality until the parts of Twisted that really don't care about threads work again. Jp
participants (5)
-
Andrew Bennetts
-
Itamar Shtull-Trauring
-
James Y Knight
-
Jp Calderone
-
Thomas Vander Stichele