1
Python / Re: Threading PySFML (Tank, remi, anyone familiar with GIL ?
« on: December 22, 2010, 08:07:34 pm »
I had the same problem, turns out the python devs made a module named "multiprocessing" basically it run a subprocess with your code in it eliminating the need for threads really, heres an example:
p.s. sync primitives such as Pipes and Queues are included in the module, check the documentation!
Code: [Select]
from multiprocessing import Process
def Example:
print "Example text"
if __name__=='__main__':
p=Process(target=Example, args=())
p.start()
p.join()
p.s. sync primitives such as Pipes and Queues are included in the module, check the documentation!