comparison packages/kernel/current/include/mqueue.inl @ 182:f62680ef1804

Merge from eCos master repository on 2001-09-07-06:43:02-BST
author jlarmour
date Wed, 12 Sep 2001 00:59:17 +0000
parents 6ed91473a1cd
children 678094f34118
comparison
equal deleted inserted replaced
181:d61da071934c 182:f62680ef1804
161 #ifdef CYGDBG_USE_ASSERTS 161 #ifdef CYGDBG_USE_ASSERTS
162 // and sum of all messages should be the total q length 162 // and sum of all messages should be the total q length
163 if ( qlen != (msgs+freemsgs+busymsgs) ) 163 if ( qlen != (msgs+freemsgs+busymsgs) )
164 goto fail; 164 goto fail;
165 #endif 165 #endif
166 166
167 Cyg_Scheduler::unlock(); 167 Cyg_Scheduler::unlock();
168 168
169 } 169 }
170 return true; // object OK 170 return true; // object OK
171 fail: 171 fail:
216 216
217 freelist = (struct qentry *)queuespace; 217 freelist = (struct qentry *)queuespace;
218 218
219 // set the last entry in the chain to the start to make the list circular 219 // set the last entry in the chain to the start to make the list circular
220 qtmp->next = NULL; 220 qtmp->next = NULL;
221 qtmp->busy = false;
221 callback = NULL; 222 callback = NULL;
222 q = NULL; 223 q = NULL;
223 free_fn = qfree; 224 free_fn = qfree;
224 #ifdef CYGDBG_USE_ASSERTS 225 #ifdef CYGDBG_USE_ASSERTS
225 qlen = maxmsgs; 226 qlen = maxmsgs;