I thought this may be of interest
to some people. It's some code
that implements lightweight co-operative
threading support on the Pilot; feel
free to use it (or abuse it!) in any way
you want:
- Available on my web site
at www.golden.net/~deepnet
is CoordTask.zip. It contains source code,
a makefile, etc. that implements a lightweight
kernel to do manual threads in a safe way
on the Pilot.
- See 'CoordTask.h' for complete details, or
www.golden.net/~deepnet/CoordTask.html
- NO undocumented or 'wierd' Pilot
APIs are used. The implementation uses
stack copying and a bit of assembly code
to do the context switch.
- Why did I do this? The threading APIs on the Pilot
are undocumented, and developers are STRONGLY
discouraged from using them. Also, full
preemptive multitasking was overkill for what I
needed, and too 'heavy'. This solution is extremely
'lightweight' and 'safe' (although possibly not as
speedy as it could be).
If it useful for you, please let me know!
Dan Pronovost
DeepNet Technologies
[EMAIL PROTECTED]
www.golden.net/~deepnet