*** empty log message ***

This commit is contained in:
glenux 2004-02-24 10:47:15 +00:00
parent 0437491523
commit 1f9ef130b8
4 changed files with 10 additions and 6 deletions

View file

@ -27,7 +27,10 @@ void * msgGet(msgSpace * space,int queueIndex,int option){
msgQueueElemId oldElemId; msgQueueElemId oldElemId;
// recupérer l'id de l'ancien element... // recupérer l'id de l'ancien element...
msgQueueElemRem(queue, oldElemId); msgQueueRem(queue, oldElemId);
msgQueueElem * oldElem;
oldElem = msgQueueElemOpen(oldElemId);
// fermer la file // fermer la file
msgQueueClose(queue); msgQueueClose(queue);

View file

@ -49,7 +49,7 @@ int msgPoolDelete(msgSpaceId spaceId, int poolIdx);
/* put.c */ /* put.c */
int msgPut(msgSpace *space, int queueIndex, void *addr); int msgPut(msgSpace *space, int queueIndex, void *addr);
/* queueAdd.c */ /* queueAdd.c */
int msgQueueElemAdd(msgQueue *queue, msgQueueElemId newElemId); int msgQueueAdd(msgQueue *queue, msgQueueElemId newElemId);
/* queueClose.c */ /* queueClose.c */
int msgQueueClose(msgQueue *queue); int msgQueueClose(msgQueue *queue);
/* queueDelete.c */ /* queueDelete.c */
@ -77,7 +77,7 @@ int msgQueueReadTryLock(msgSpaceId externId, int queueIdx);
/* queueReadUnlock.c */ /* queueReadUnlock.c */
int msgQueueReadUnlock(msgSpaceId externId, int queueIdx); int msgQueueReadUnlock(msgSpaceId externId, int queueIdx);
/* queueRem.c */ /* queueRem.c */
int msgQueueElemRem(msgQueue *queue, msgQueueElemId oldElemId); int msgQueueRem(msgQueue *queue, msgQueueElemId oldElemId);
/* spaceCreate.c */ /* spaceCreate.c */
msgSpace *msgSpaceCreate(msgSpaceId externId, int queueNb, int poolNb, msgPool *poolInfos); msgSpace *msgSpaceCreate(msgSpaceId externId, int queueNb, int poolNb, msgPool *poolInfos);
/* spaceDelete.c */ /* spaceDelete.c */

View file

@ -2,7 +2,7 @@
// on ajoute en fin de queue... // on ajoute en fin de queue...
int msgQueueElemAdd(msgQueue * queue, msgQueueElemId newElemId){ int msgQueueAdd(msgQueue * queue, msgQueueElemId newElemId){
msgQueueElem * queueOldTailElem; msgQueueElem * queueOldTailElem;
msgQueueElem * queueNewTailElem; msgQueueElem * queueNewTailElem;
@ -19,7 +19,8 @@ int msgQueueElemAdd(msgQueue * queue, msgQueueElemId newElemId){
} }
/* TODO: verifier si la liste n'est pas vide... */ /* TODO: verifier si la liste n'est pas vide... */
if((queue->headId = queue->id) && (queue->tailId = queue->id)) { if((strcmp(queue->headId,queue->id)==0)
&& (strcmp(queue->tailId,queue->id)==0)) {
NZG_ERROR("msgQueueAdd",queue->id); NZG_ERROR("msgQueueAdd",queue->id);
goto ERROR; goto ERROR;
} }

View file

@ -2,7 +2,7 @@
// l'id de l'element enlevé vas dans oldElemId // l'id de l'element enlevé vas dans oldElemId
int msgQueueElemRem(msgQueue * queue, msgQueueElemId oldElemId){ int msgQueueRem(msgQueue * queue, msgQueueElemId oldElemId){
msgQueueElem * queueOldHeadElem; msgQueueElem * queueOldHeadElem;