MC-3020 interfaces to the tasking/threading capabilities of
the underlying OS/RTOS through a single interface layer module.
The interface module is generated into the generated source of the
system node into a file called sys_thread.c
.
The tasking/threading interface consists of six interfaces.
One interface provides for initialization
(InitializeThreading
). Another interface
provides for creating threads
(thread_create
). Two interfaces allow
for the locking and unlocking of shared resources such as event
and instance queues (mutex_lock/unlock
).
Two final interfaces allow for the class activities in a task to go
"non-busy" using no cycles when there is no work to do
(nonbusy_wait/wake
) and to "wake up" when new
work arrives.
The resources that are protected by the locking and unlocking interfaces include instance event queue, self event queue, collection element free list, non-busy lock, serialization lock, instance queues, timers and interleaved bridges.