Motorola 6806800C08B Manual Do Utilizador

Página de 52
LEAP Portability Layer
NetPlane Core Services
NetPlane Core Services Overview  User’s Guide (6806800C08B)
43
   
2.8
LEAP Portability Layer
The LEAP (Layered Enhancement for Accelerated Portability) layer was introduced to facilitate 
the porting of NCS applications and user applications to other operating systems. It provides 
various abstractions from OS-specific details. In particular, LEAP provides:
z
IP-layer abstraction
z
File system abstraction
z
Dynamic library abstraction
z
Monitored buffer and memory manager
z
Monitored process internal queues
z
Monitored timer services which can oversee a large number of timers at once
z
Object locking
LEAP provides its services in the form of C macros and libraries to be linked by applications. 
For further details on the LEAP and on how to use it, refer to the LEAP Programmer's 
Reference
.
2.9
Implementation Notes
This section summarizes important information that should be kept in mind when writing 
applications that make use of NCS.
2.9.1
Cancelling Application Threads
NCS libraries is not a cancel-safe implementation. If an application thread acquires a NCS 
resource (Example: acquired a lock, waiting on semaphore, etc) then the thread should be 
cancelled only after releasing the resource acquired by the thread. Similarly, the application 
thread should not be cancelled when execution of NCS API is under progress.