mat wrote:
I have a question with regards to thread synchronization on the dm6446
using open source kernel 2.6.18.

I am trying to figure out how to prevent the context from switching at
certain points in my application.
For example, when I call VIDENC1_create or VIDENC1_process, this seems
to open up the possibility of a context switch to another thread.
This is bad, and will cause the program to hang, particularly if the
other thread has file/hardware i/o in it.

why?

So I would like to do something that I think should be easy, wrap the
calls to VIDENC1_create/process/etc in a critical section that prevents
the context from switching to another thread.

no can do under user space linux

On a microcontroller I would just disable all interrupts and then
reenable them after the call.

not under linux

Is there any function that I am missing? Maybe some kind of scheduler
library that has a pause or a way to temporarily disable the switching
to a thread.
It has to be in there somewhere, I think this a basic embedded os feature.

you should ask yourself why you would need that, I see no reason.

_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to