02.03.2014 Views

Tornado

Tornado

Tornado

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>Tornado</strong> 2.0<br />

User’s Guide<br />

semShow( )<br />

NAME<br />

SYNOPSIS<br />

DESCRIPTION<br />

RETURNS<br />

SEE ALSO<br />

semShow( ) – show information about a semaphore<br />

STATUS semShow<br />

(<br />

SEM_ID semId, /* semaphore to display */<br />

int level /* 0 = summary, 1 = details */<br />

)<br />

This command displays the state and optionally the pended tasks of a semaphore.<br />

A summary of the state of the semaphore is displayed as follows:<br />

Semaphore Id : 0x585f2<br />

Semaphore Type : BINARY<br />

Task Queuing : PRIORITY<br />

Pended Tasks : 1<br />

State<br />

: EMPTY {Count if COUNTING, Owner if MUTEX}<br />

If tasks are blocked on the queue, they are displayed in the order in which they will<br />

unblock, as follows:<br />

NAME TID PRI DELAY<br />

---------- -------- --- -----<br />

tExcTask 3fd678 0 21<br />

tLogTask 3f8ac0 0 611<br />

OK or ERROR.<br />

windsh, browse( ), <strong>Tornado</strong> User’s Guide: Shell<br />

shellHistory( )<br />

NAME<br />

SYNOPSIS<br />

shellHistory() – display or set the size of shell history<br />

void shellHistory<br />

(<br />

int size /* 0 = display, >0 = set history to new size */<br />

)<br />

410

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

Saved successfully!

Ooh no, something went wrong!