Interface: tos.lib.Deluge.SharedMsgBuf
interface SharedMsgBuf
Simple component that allows sharing of message buffers through a
parameterized interface.
- Author:
-
Jonathan Hui <jwhui@cs.berkeley.edu>
Commands
command TOS_MsgPtr getMsgBuf()
command bool isLocked()
command void lock()
command void unlock()
Events
event void bufFree()
Commands - Details
getMsgBuf
command TOS_MsgPtr getMsgBuf()
- Returns:
-
The pointer to the shared message buf.
isLocked
command bool isLocked()
- Returns:
-
TRUE
if the shared message buf is locked;
FALSE
otherwise.
lock
command void lock()
unlock
command void unlock()
Events - Details
bufFree
event void bufFree()