[Twisted-Python] twisted threads: synchronous function calls

Thomas HERVE therve at free.fr
Tue Jun 20 10:27:06 EDT 2006


Quoting Markus Schiltknecht <markus at bluegap.ch>:

> Hi,
>
> callFromThread returns before myfunc finishes. It seems to be useful 
> for async function calls, but not for my case.
>
> [snip]
>
> Am I facing problems I'm not aware of? Did I miss something?

There's a ticket waiting for tests/review/? in the tracker: 
http://twistedmatrix.com/trac/ticket/1042.

You can see that you have an available implementation in web2.wsgi 
called callInReactor which looks similar to yours but uses Queue 
instead.

-- 
Thomas

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.





More information about the Twisted-Python mailing list