Disable interrupt processing
Source position: exec.pas line 1789
procedure Disable; |
Prevents interrupts from being handled by the system, until a matching Enable() is executed. Disable() implies Forbid(). Normal task rescheduling does not occur while interrupts are disabled.
Do not use this call without a special reason, its very dangerous and hinder the basic function of the operating system and computer. It is important to remember that there is a danger in using disabled sections. Disabling interrupts for more than ~250 microseconds will prevent vital system functions (especially serial I/0) from operating in a normal fashion.
Think twice before using Disable(), then think once more. After all that, think again. With enough thought, the need for a Disable() can often be eliminated.
|
Forbid task scheduling. |
|
|
Permit task rescheduling. |
|
|
Enable interrupt processing |