SYS/BIOS  7.00
Data Fields
Semaphore_Params Struct Reference

#include </home/developer/.conan/data/tirtos/7.03.00.10/library-sb/ga/build/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/kernel/tirtos7/packages/ti/sysbios/knl/Semaphore.h>

Collaboration diagram for Semaphore_Params:
Collaboration graph
[legend]

Data Fields

Semaphore_Mode mode
 Semaphore mode. More...
 
Event_Handle event
 Event instance to use if non-NULL. More...
 
unsigned int eventId
 eventId if using Events More...
 

Field Documentation

§ mode

Semaphore_Mode Semaphore_Params::mode

Semaphore mode.

When mode is BINARY, the semaphore has only two states, available and unavailable. When mode is COUNTING, the semaphore keeps track of number of times a semaphore is posted.

The default for this parameter is COUNTING.

§ event

Event_Handle Semaphore_Params::event

Event instance to use if non-NULL.

The default value of this parameter is null. If event is non-null:

  • Event_post(sem->event, sem->eventId) will be invoked when Semaphore_post() is called.
  • Event_pend(sem->event, 0, sem->eventId, timeout) will be invoked when Semaphore_pend() is called.

§ eventId

unsigned int Semaphore_Params::eventId

eventId if using Events

The default for this parameters is 1.


The documentation for this struct was generated from the following file:
© Copyright 1995-2023, Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy policy | Terms of use | Terms of sale