[Tinyos-help] @safe flag

BAI LI libai0915 at gmail.com
Wed Feb 4 22:27:21 PST 2009


Hi All,

I found the code as follows in CounterToLocalTimeC file,

generic module CounterToLocalTimeC(typedef precision_tag) @safe()
{
  provides interface LocalTime<precision_tag>;
  uses interface Counter<precision_tag,uint32_t>;
}
implementation
{
  async command uint32_t LocalTime.get()
  {
    return call Counter.get();
  }
  async event void Counter.overflow()
  {
  }
}

But I don't understand what the meaning of "@safe"? Sum1 can explain it to
me? Any help would be appreciated.

Regards,
Bai
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20090205/e061cf78/attachment.htm 


More information about the Tinyos-help mailing list