Unit 'Exec' Package
[Overview][Constants][Types][Procedures and functions][Variables][Index] [#aros]

Disable

Disable interrupt processing

Declaration

Source position: exec.pas line 1231

procedure Disable;

Description

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.

See also

Forbid

  

Forbid task scheduling.

Permit

  

Permit task rescheduling.

Enable

  

Enable interrupt processing


Documentation generated on: 2021-07-30