Re: [python-uk] Extending Python - Asynchronous Callbacks
On Friday 15 August, "Phil Hornby" wrote:
Not played with Python 2.3...still working with 2.2. But are you basically staying I should have a Thread State per Thread, as opposed to how I actually have it...with a Thread State per Callback?
Yes. Furthermore, you have to always use the same thread state per thread, at least for threads that Python started in the first place.
I will have to give my code a try with 2.3 to see if it fails monumentally...:>
I expect it will work fine unless you try it with a debug version, since the new check is only activated when debugging. Cheers, Duncan. -- -- Duncan Grisby -- -- duncan@grisby.org -- -- http://www.grisby.org --
On Friday 15 August, "Phil Hornby" wrote:
Not played with Python 2.3...still working with 2.2. But are you basically staying I should have a Thread State per Thread, as opposed to how I actually have it...with a Thread State per Callback?
Yes. Furthermore, you have to always use the same thread state per thread, at least for threads that Python started in the first place.
Aha...that might be a big difference...whilst Python does technically start the thread, it is not a Python Thread as such. Not sure if that makes a difference...
I will have to give my code a try with 2.3 to see if it fails monumentally...:>
I expect it will work fine unless you try it with a debug version, since the new check is only activated when debugging.
Okay that's fine then...but I suppose I should fix it.... Anyway thanks for the help Phil
participants (2)
-
Duncan Grisby -
Phil Hornby