[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
uninterruptable sequence of instructions with rtl3.0
hi folks,
I have the following problem:
I must ensure, that a rt-process will execute a sequence of instructions
without being interrupted by e.g. an isr ( with higher priority ). I have
not found any function calls in rtl3.0 that performs a kind of
cpu_(un)locking?
:
lock_cpu(); // no other process is able to get the cpu
foo();
:
bar();
unlock_cpu(); // from now, each other process is able to obtain the cpu
Are there any functions ( I called them here lock_cpu and unlock_cpu )
implemented in rtl3.0 or do I have to implement these functions myself ?
Thanks a lot in advance to all of you !
best regards
ralf