I started doing it and I can see almost the functionality from VxWorks,
but the functions don't seem as user friendly.
Do people typically make their own functions that use the functionality
of POSIX threads, so they can hide a lot of the complexity? Or do they
usually just use these functions like
pthread_create, pthread_cond_wait on their own?
I am hoping i could find some examples of people "wrapping" these
functions in other functions to save me the time of doing it myself.
So, if you are thinking of swiching OSes in the future, I'd use Posix,
otherwise my preference is to use the taskLib calls directly w/o the
added overhead of another layer.
Note that if you use the posix layer, you'll end up with a lot of tasks
called pThread1, pThread2, etc., which makes using the debugger a bit
of a challenge when trying to figure out what's going on.
If you do find the need to rapidly port a lot of code, I'd recommend
www.mapusoft.com. They have libraries available to use almost any RTOS
API on almost any other target RTOS, including that open source OS
that's becoming more popular in non-realtime embeddded systems.
Good luck,
lc
Is it that the new board does not support vxWorks or has someone told
you that the new board does not support vxWorks threads(tasks) but
somehow supports vxWorks? If the former, then obviously you should
minimize use of all vxWorks specific calls. If the latter, then I think
someone is confused.
Me, I just always use Ada tasking and then I don't worry about it.
lc