*** empty log message ***
This commit is contained in:
parent
f1d1234775
commit
7d84fce952
6 changed files with 11 additions and 8 deletions
|
@ -64,13 +64,13 @@ msgQueue *queueInit(msgSpaceId externId, int queueIdx);
|
|||
/* queueOpen.c */
|
||||
void *msgQueueOpen(msgQueueId queueId);
|
||||
/* queueProtLock.c */
|
||||
int queueProtLock(msgSpaceId externId, int queueIdx);
|
||||
int msgQueueProtLock(msgSpaceId externId, int queueIdx);
|
||||
/* queueProtUnlock.c */
|
||||
int queueProtUnlock(msgSpaceId externId, int queueIdx);
|
||||
int msgQueueProtUnlock(msgSpaceId externId, int queueIdx);
|
||||
/* queueReadLock.c */
|
||||
int queueReadLock(msgSpaceId externId, int queueIdx);
|
||||
int msgQueueReadLock(msgSpaceId externId, int queueIdx);
|
||||
/* queueReadUnlock.c */
|
||||
int queueReadUnlock(msgSpaceId externId, int queueIdx);
|
||||
int msgQueueReadUnlock(msgSpaceId externId, int queueIdx);
|
||||
/* queueRem.c */
|
||||
int msgQueueElemRem(msgQueue *queue, msgQueueElemId oldElemId);
|
||||
/* spaceCreate.c */
|
||||
|
|
|
@ -22,6 +22,7 @@ int err;
|
|||
msgQueueId queueId;
|
||||
msgQueue * queue;
|
||||
msgQueueIdIntern(queueId,space->externId,queueIndex);
|
||||
msgQueueProtLock(space->externId,queueIndex);
|
||||
queue = msgQueueOpen(queueId);
|
||||
|
||||
// TODO:creer un element vide
|
||||
|
@ -42,10 +43,12 @@ msgQueueElemAdd(queue,newElemId);
|
|||
|
||||
// fermer la file
|
||||
msgQueueClose(queue);
|
||||
msgQueueProtUnlock(space->externId,queueIndex);
|
||||
|
||||
msgPoolDataTabClose(space,poolDataTabAddr);
|
||||
/* msgPoolDataTabUnlock(space->id);
|
||||
*/
|
||||
msgQueueReadUnlock(space->externId,queueIndex);
|
||||
return 0;
|
||||
ERROR:
|
||||
return -1;
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#include "libnazgul.h"
|
||||
#include "ids.h"
|
||||
|
||||
int queueProtLock(msgSpaceId externId,int queueIdx){
|
||||
int msgQueueProtLock(msgSpaceId externId,int queueIdx){
|
||||
sem_t * queueSemFd;
|
||||
msgQueueSemId queueSemId;
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#include "libnazgul.h"
|
||||
#include "ids.h"
|
||||
|
||||
int queueProtUnlock(msgSpaceId externId,int queueIdx){
|
||||
int msgQueueProtUnlock(msgSpaceId externId,int queueIdx){
|
||||
sem_t * queueSemFd;
|
||||
msgQueueSemId queueSemId;
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#include "libnazgul.h"
|
||||
#include "ids.h"
|
||||
|
||||
int queueReadLock(msgSpaceId externId,int queueIdx){
|
||||
int msgQueueReadLock(msgSpaceId externId,int queueIdx){
|
||||
sem_t * queueSemFd;
|
||||
msgQueueSemId queueSemId;
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#include "libnazgul.h"
|
||||
#include "ids.h"
|
||||
|
||||
int queueReadUnlock(msgSpaceId externId,int queueIdx){
|
||||
int msgQueueReadUnlock(msgSpaceId externId,int queueIdx){
|
||||
sem_t * queueSemFd;
|
||||
msgQueueSemId queueSemId;
|
||||
|
||||
|
|
Loading…
Reference in a new issue