[Tinyos-contrib-commits]
CVS: tinyos-1.x/contrib/wustl/apps/Agilla/components
TupleSpaceM.nc, 1.13, 1.13.2.1
Chien-Liang Fok
chien-liang at users.sourceforge.net
Wed Dec 20 04:02:44 PST 2006
Update of /cvsroot/tinyos/tinyos-1.x/contrib/wustl/apps/Agilla/components
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv21615
Modified Files:
Tag: GroupComm
TupleSpaceM.nc
Log Message:
works when the person that moved is the first to talk.
Index: TupleSpaceM.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-1.x/contrib/wustl/apps/Agilla/components/TupleSpaceM.nc,v
retrieving revision 1.13
retrieving revision 1.13.2.1
diff -C2 -d -r1.13 -r1.13.2.1
*** TupleSpaceM.nc 18 May 2006 19:58:40 -0000 1.13
--- TupleSpaceM.nc 20 Dec 2006 12:02:40 -0000 1.13.2.1
***************
*** 238,243 ****
*
* @param tuple The tuple to insert.
! * @return SUCCESS if the operation was completed, FAIL if the tuple space
! * is full.
*/
command result_t TS.out(AgillaTuple* tuple)
--- 238,245 ----
*
* @param tuple The tuple to insert.
! * @return SUCCESS if the operation was completed. If the operatoin
! * was not completed, an error code is returned:
! * 2 = unknown tuple size
! * 0 = unsufficient space
*/
command result_t TS.out(AgillaTuple* tuple)
***************
*** 250,257 ****
if (tupleSize == -1 || tupleSize == 0)
! {
dbg(DBG_USR1, "TS.out: ERROR: tupleSize = %i\n", tupleSize);
! call ErrorMgrI.error2d(NULL, AGILLA_ERROR_TUPLE_SIZE, 1, tupleSize);
! return FAIL;
}
--- 252,259 ----
if (tupleSize == -1 || tupleSize == 0)
! {
dbg(DBG_USR1, "TS.out: ERROR: tupleSize = %i\n", tupleSize);
! call ErrorMgrI.error2d(NULL, AGILLA_ERROR_TUPLE_SIZE, 1, tupleSize);
! return 2;
}
***************
*** 270,274 ****
{
dbg(DBG_USR1, "TS.out: Not enough space: freeIndex = %i, tupleSize = %i, TS size = %i\n", freeIndex, tupleSize, AGILLA_TS_SIZE);
! return FAIL;
}
--- 272,276 ----
{
dbg(DBG_USR1, "TS.out: Not enough space: freeIndex = %i, tupleSize = %i, TS size = %i\n", freeIndex, tupleSize, AGILLA_TS_SIZE);
! return 0;
}
More information about the Tinyos-contrib-commits
mailing list