30.12.2013 Views

T-Kernel Specification (1.B0.02)

T-Kernel Specification (1.B0.02)

T-Kernel Specification (1.B0.02)

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

110 CHAPTER 4. T-KERNEL/OS FUNCTIONS<br />

TA TFIFO<br />

TA TPRI<br />

TA INHERIT<br />

TA CEILING<br />

TA NODISWAI<br />

Tasks are queued in FIFO order<br />

Tasks are queued in priority order<br />

Priority inheritance protocol<br />

Priority ceiling protocol<br />

Wait disabling by tk dis wai is prohibited<br />

When the TA TFIFO attribute is designated, the order of the mutex task queue is FIFO. If TA TPRI,<br />

TA INHERIT, or TA CEILING is designated, tasks are ordered by their priority. TA INHERIT indicates that<br />

priority inheritance protocol is used, and TA CEILING designates priority ceiling protocol.<br />

Only when TA CEILING is designated does ceilpri have validity, setting the mutex ceiling priority.<br />

#define TA_TFIFO 0x00000000 /* manage task queue by FIFO */<br />

#define TA_TPRI 0x00000001 /* manage task queue by priority */<br />

#define TA_INHERIT 0x00000002 /* priority inheritance protocol */<br />

#define TA_CEILING 0x00000003 /* priority ceiling protocol */<br />

#define TA_NODISWAI 0x00000080 /* reject wait disabling */<br />

Copyright c○ 2002, 2003 by T-Engine Forum<br />

T-<strong>Kernel</strong> <strong>1.B0.02</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!