Managing critical sections, Managing binary semaphores, Managing operating system events – Echelon LonTal Stack User Manual

Page 202

Advertising
background image

190

Appendix D: LonTalk API

The following sections provide an overview of the functions that the OSAL

provides.

Managing Critical Sections

To manage critical sections, the OSAL provides the functions listed in the

following table:

Function

Description

OsalCreateCriticalSection() Creates a critical section.

OsalDeleteCriticalSection() Deletes a critical section.

OsalEnterCriticalSection() Enters a critical section.

OsalLeaveCriticalSection() Leaves a critical section.

Managing Binary Semaphores

To manage binary semaphores, the OSAL provides the functions listed in the
following table:

Function

Description

OsalCreateBinarySemaphore()

Creates a binary semaphore.

OsalDeleteBinarySemaphore()

Deletes a binary semaphore.

OsalReleaseBinarySemaphore() Releases a binary semaphore.

OsalWaitForBinarySemaphore() Waits for binary semaphore.

Managing Operating System Events

To manage operating system events, the OSAL provides the functions listed in

the following table:

Function

Description

OsalCreateEvent()

Creates an event.

OsalDeleteEvent()

Deletes an event.

OsalSetEvent()

Sets an event.

OsalWaitForEvent() Waits for an event.

Advertising