Chapter 6

Additional Functions and Structures

6.1  Functions

void avr_thread_enable(void)   inline

This function re-enables task switching that has been disabled by avr_thread_disable().

The avr_thread_enable() and avr_thread_disable() functions keep track of how many times they’ve been called. Task switching will only be enabled when avr_thread_enable() has been called as many times as avr_thread_disable() was called in disabling task switching.

void avr_thread_disable(void)   inline

This function disables task switching. Task switching is re-enabled by calling avr_thread_enable().

The avr_thread_enable() and avr_thread_disable() functions keep track of how many times they’ve been called. Task switching will only be enabled when avr_thread_enable() has been called as many times as avr_thread_disable() was called in disabling task switching.

struct avr_thread_context   structure

This structure holds data used by the AVR Threads Library to manage each thread. It should be treated as an opaque object.