print 'I am running inside a thread.'
print 'I am still running inside a thread.'
print 'I am exiting the thread, going back into cooperative mode.'
for i in xrange(3):
print 'I am running cooperatively too.'
for i in xrange(5):
print 'I am running cooperatively.'
s = fibra.Schedule()
while s.tick(): pass
Friday, November 16, 2007
Cooperative + Preemptive Concurrency
I've just uploaded Fibra 2 to the cheeseshop. Fibra 2 includes the promised non-blocking plugin, which allows a generator based task to momentarily run in a seperate thread.
So, you've created a car prefab using WheelCollider components, and now you can apply a motorTorque to make the whole thing move along. ...
Possibly slightly more correct lighting. The rim light is now only applied in the direction of the sun, rather than being purely based on v...
These are the robots I've been working on for the last 12 months. They each weigh about 11 tonnes and have a 17 meter reach. The contr...
I've just seen and used a brilliant ssh option. The command: sudo ssh -D localport user@externalhost will set up a local SOCKS proxy l...
When you start working with threads in your Unity3D project, you will discover that many things need to be done in the main loop. For exampl...
I've just finished refactoring an awful C# class. I had been delaying the job for a while because I didn't want to do it. Then, whi...
Just 514 lines of code. Uses sockets only, no other dependencies. https://github.com/simonwittber/uniwebserver Example Component: [Req...
Thank to Adrian Boeing I was inspired this morning to hack together a ripple shader for Unity3D. Thanks for the math Adrian. You can see t...
Working with multiple threads is often a necessary evil. This is how I do it safely inside a Unity3D component. There are only certain time...
import csv open("output.tsv", "w").write("\n".join("\t".join(e.strip() for e in i) for i in csv.rea...