I've not tried using Python threads within Nox. It very well could be
broken. You can grep around src/nox/coreapps/pyrt/ to see the reactor
implementation within Nox.
I would suggest using Twisted event harness and deferred's rather than
Python threads.
.martin
Hello *,
I recently started working on a project using NOX. I'm wondering how
(if at all) I can use python threads in my controller (I want to use these
to handle a blocking function call). I came across this post, dealing
with a similar problem:
http://www.mail-archive.com/[email protected]/msg00430.html
where it is hinted, that using the twisted framework would be the right
approach. So far I've tried (unsuccessfully) using the callInThread and
deferToThread functions from twisted. Are these functions implemented in
the NOX reactor? Also, is my assumption that reactor.run() is executed
automatically by NOX correct?
I would be very thankful for any pointers!
Best regards,
Zdravko
_______________________________________________
nox-dev mailing list
[email protected]
http://noxrepo.org/mailman/listinfo/nox-dev_noxrepo.org
_______________________________________________
nox-dev mailing list
[email protected]
http://noxrepo.org/mailman/listinfo/nox-dev_noxrepo.org