X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=tos%2Flib%2Ftosthreads%2Flib%2Fnet%2Fctp%2FCCollectionC.nc;h=6e17b7a0d2334e80c9b12c1492f061d869c733f0;hb=1bcdc760d06541d8a89e58e3e1a970c658db66d7;hp=7508b706aa88e0deae73ce1443a59ccf64a58b65;hpb=f460e224ffeb4ac0adf01bcf204c60e941d96285;p=tinyos-2.x.git diff --git a/tos/lib/tosthreads/lib/net/ctp/CCollectionC.nc b/tos/lib/tosthreads/lib/net/ctp/CCollectionC.nc index 7508b706..6e17b7a0 100644 --- a/tos/lib/tosthreads/lib/net/ctp/CCollectionC.nc +++ b/tos/lib/tosthreads/lib/net/ctp/CCollectionC.nc @@ -45,16 +45,6 @@ implementation { components BlockingCollectionSenderP; components BlockingCollectionControlC; - //Allocate enough room in the message queue for all message types. - //This number needs to be 255-1-12 because - //(1) The max number that can be provided to the Queue underneath for its size is 255 - //(2) uniqueN() will give you values from 0..N constituting N+1 unique numbers - //(3) there are 12 spaces reserved in the send queue in CtpP for forwarding messages. - //I don't like this implementation, but it will do for now.... - enum { - FIRST_CLIENT = uniqueN(UQ_CTP_CLIENT, 255-1-12), - }; - CCP.BlockingReceive -> BlockingCollectionReceiverP; CCP.BlockingSnoop -> BlockingCollectionSnooperP; CCP.BlockingSend -> BlockingCollectionSenderP;