Chris O'Byrne - YAVRTOS

semaphore_t Struct Reference

Structure describing a semaphore. More...


Data Fields

int16_t value
 

For internal use only.

The value of the semaphore



Detailed Description

Structure describing a semaphore.

See also:
Semaphores

Field Documentation

For internal use only.

The value of the semaphore

If you do decide to read or write the value of the semaphore directly, keep in mind

  • it is a 16-bit value, and so interrupts need to be disabled when reading/writing
  • after writing, a yield() may need to be performed


The documentation for this struct was generated from the following file:

YAVRTOS and YAVRTOS documentation Copyright © 2007-2008 Chris O'Byrne. Email - chris <at> obyrne <dot> com