no preempted / no interrupt


Is it possibe to make something under qnx without be preempetd or

I know semaphore … or Interruptdisable()

I mean something like that : Instruction To Be NOT Preempted ()
+ some c/c++ code
Instruction To Be Preempted ()


an thanks

Check these … #AtomicFns

But it is impossible to disable/enable preemption …

Yeah, but you would effectively turn off the OS for the period of time you did this. As you mentioned, if you disable interrupts, nothing can preempt you until you turn them back on (assuming non-SMP). Other than that, you can make sure that no other user process will preempt you by making yourself a higher priority (that IS the point).