Hello, I would like to know if XBMC Python supports multiprocessing in general. I tried to do some coding by creating a new thread in a python crypts for an addon. But XBMC doesn't seem to get it. Which is weird because this basic code works in IDLE.
Does XBMC simply block new threads for whatever reason (like avoid creating zombie threads)?
Quick question on multiprocessing
Avatarass
Junior Member Posts: 27 Joined: Apr 2012 Reputation: 0 |
2012-08-28 07:28
Post: #1
|
| find quote |
spiff
Grumpy Bastard Developer Joined: Nov 2003 Reputation: 82 |
2012-08-28 08:47
Post: #2
uh, no. threads are fine. forks i've been told have some issues on some platforms.
Always read the XBMC online-manual, FAQ and search the forum before posting. Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules. For troubleshooting and bug reporting please make sure you read this first. |
| find quote |
Avatarass
Junior Member Posts: 27 Joined: Apr 2012 Reputation: 0 |
2012-08-28 21:35
Post: #3
okay thank you
(This post was last modified: 2012-08-28 21:35 by Avatarass.)
|
| find quote |
fegunz
Junior Member Posts: 10 Joined: Apr 2010 Reputation: 0 |
2012-12-09 04:01
Post: #4
Follow up question to an old thread:
So am I correct in assuming Python's multiprocessing module cannot be used for plugins? I assume the multiprocessing.Process call is using the OS's fork call to create processes? I'm asking because I've ran into behavior where it works on mac OS, but not on Windows. The code in question executes a process, but I don't think any new processes are ever created. Perhaps it's because XBMC doesn't support multiprocessing. Sample code: Code: from multiprocessing import ProcessFull code available on request. |
| find quote |
fegunz
Junior Member Posts: 10 Joined: Apr 2010 Reputation: 0 |
2012-12-11 18:28
Post: #5
DEAR PEOPLE FROM THE FUTURE: Here's what we've figured out so far ... (See xkcd #979)
XBMC on Windows does not like the following (multiprocessing module): Code: Process(target=ProcessTarget, args=(filePath, language))And XBMC on Mac OS does not like this (subprocess module): Code: subprocess.Popen(args, stdout=subprocess.PIPE, stderr=subprocess.PIPE, universal_newlines=True)Tested on XBMC Eden only. Good luck! |
| find quote |

Search
Help