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.

4.5. EXTENDED SYNCHRONIZATION AND COMMUNICATION FUNCTIONS 137<br />

The capability of setting rendezvous conditions in calptn and acpptn can be applied to implement a<br />

rendezvous selective acceptance function like the ADA select function. A specific processing approach<br />

equivalent to an ADA select statement (Figure 4.6) is shown in Figure 4.7.<br />

The ADA select function is provided only on the accepting end, but it is also possible to implement a<br />

select function on the calling end by designating multiple bits in calptn.<br />

[Rationale for the <strong>Specification</strong>]<br />

The reason for specifying separate system calls tk cal por and tk acp por even though the conditions<br />

for establishing a rendezvous mirror each other on the calling and accepting sides is because processing<br />

required after a rendezvous is established differs for the tasks on each side. That is, whereas the calling<br />

task enters WAIT state after the rendezvous is established, the accepting task enters READY state.<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!