X-Git-Url: https://oss.titaniummirror.com/gitweb/?p=tinyos-2.x.git;a=blobdiff_plain;f=tos%2Flib%2Ftosthreads%2Fcsystem%2FCLogStorageP.nc;h=92638a7d5bc72663438950fbe2d872ccda6d70c5;hp=04f0db59898ec0ebc1307afc280b3d7747442bb8;hb=e9bfab607e051bae6afb47b44892ce37541d1b44;hpb=adf1de6c009d13b7b52e68535c63b28f59c97400 diff --git a/tos/lib/tosthreads/csystem/CLogStorageP.nc b/tos/lib/tosthreads/csystem/CLogStorageP.nc index 04f0db59..92638a7d 100644 --- a/tos/lib/tosthreads/csystem/CLogStorageP.nc +++ b/tos/lib/tosthreads/csystem/CLogStorageP.nc @@ -39,28 +39,28 @@ module CLogStorageP { } } implementation { - error_t volumeLogRead(uint8_t volumeId, void *buf, storage_len_t *len) @C() @spontaneous() { + error_t volumeLogRead(uint8_t volumeId, void *buf, storage_len_t *len) @C() AT_SPONTANEOUS { return call BlockingLog.read[volumeId](buf, len); } - storage_cookie_t volumeLogCurrentReadOffset(uint8_t volumeId) @C() @spontaneous() { + storage_cookie_t volumeLogCurrentReadOffset(uint8_t volumeId) @C() AT_SPONTANEOUS { return call BlockingLog.currentReadOffset[volumeId](); } - error_t volumeLogSeek(uint8_t volumeId, storage_cookie_t offset) @C() @spontaneous() { + error_t volumeLogSeek(uint8_t volumeId, storage_cookie_t offset) @C() AT_SPONTANEOUS { return call BlockingLog.seek[volumeId](offset); } - storage_len_t volumeLogGetSize(uint8_t volumeId) @C() @spontaneous() { + storage_len_t volumeLogGetSize(uint8_t volumeId) @C() AT_SPONTANEOUS { return call BlockingLog.getSize[volumeId](); } - error_t volumeLogAppend(uint8_t volumeId, void* buf, storage_len_t *len, bool *recordsLost) @C() @spontaneous() { + error_t volumeLogAppend(uint8_t volumeId, void* buf, storage_len_t *len, bool *recordsLost) @C() AT_SPONTANEOUS { return call BlockingLog.append[volumeId](buf, len, recordsLost); } - storage_cookie_t volumeLogCurrentWriteOffset(uint8_t volumeId) @C() @spontaneous() { + storage_cookie_t volumeLogCurrentWriteOffset(uint8_t volumeId) @C() AT_SPONTANEOUS { return call BlockingLog.currentWriteOffset[volumeId](); } - error_t volumeLogErase(uint8_t volumeId) @C() @spontaneous() { + error_t volumeLogErase(uint8_t volumeId) @C() AT_SPONTANEOUS { return call BlockingLog.erase[volumeId](); } - error_t volumeLogSync(uint8_t volumeId) @C() @spontaneous() { + error_t volumeLogSync(uint8_t volumeId) @C() AT_SPONTANEOUS { return call BlockingLog.sync[volumeId](); } }