no preempted / no interrupt

Hi

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

I know semaphore … or Interruptdisable()

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

tchao

an thanks

Check these qnx.com/developers/docs/mome … #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).

Rick…