Ticket #62 (closed defect: fixed)
Python threading
| Reported by: | ObsidianX | Owned by: | dsmith |
|---|---|---|---|
| Priority: | critical | Milestone: | Version 0.6.00 |
| Component: | other | Version: | 0.6.00 |
| Keywords: | python thread | Cc: |
Description
As of right now the search/connect code blocks the entire app upon execution. In an app such as mine that needs to be looking for wiimotes constantly while doing its normal operation, this is unacceptable. Thanks to someone in the Python IRC channel I found info on proper Python C threading and hacked up the module code to make it cooperate with my thread.
The only thing that needed to be done was to wrap the connect code with the macros: Py_BEGIN_ALLOW_THREADS Py_END_ALLOW_THREADS
As you will see in the patch.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.
