*** empty log message ***
This commit is contained in:
parent
7a2398e8d4
commit
6ae954fe0f
3 changed files with 5 additions and 3 deletions
|
@ -32,6 +32,7 @@ void * msgAllocate(msgSpace *space,
|
||||||
int bufferFreeIndex;
|
int bufferFreeIndex;
|
||||||
int mSPoolFd;
|
int mSPoolFd;
|
||||||
msgPoolData * mSPoolDataTabAddr;
|
msgPoolData * mSPoolDataTabAddr;
|
||||||
|
int bufferNb;
|
||||||
|
|
||||||
|
|
||||||
selectedPoolIndex=-1;
|
selectedPoolIndex=-1;
|
||||||
|
@ -199,7 +200,7 @@ void * msgAllocate(msgSpace *space,
|
||||||
PROT_NONE, //prot PROT_READ | PROT_WRITE
|
PROT_NONE, //prot PROT_READ | PROT_WRITE
|
||||||
MAP_SHARED, mSPoolFd,
|
MAP_SHARED, mSPoolFd,
|
||||||
(off_t)0);
|
(off_t)0);
|
||||||
int bufferNb=mSPoolDataTabAddr[selectedPoolIndex].bufferNb;
|
bufferNb=mSPoolDataTabAddr[selectedPoolIndex].bufferNb;
|
||||||
|
|
||||||
// mprotect(resultAddr,bufferFreeSize*bufferNb,PROT_NONE);
|
// mprotect(resultAddr,bufferFreeSize*bufferNb,PROT_NONE);
|
||||||
mprotect(resultAddr,bufferFreeSize*(bufferFreeIndex+1),PROT_READ|PROT_WRITE);
|
mprotect(resultAddr,bufferFreeSize*(bufferFreeIndex+1),PROT_READ|PROT_WRITE);
|
||||||
|
|
|
@ -28,8 +28,8 @@ msgQueue * queueInit(msgSpaceId externId, int queueIdx) {
|
||||||
|
|
||||||
/* on remplit la structure msgQueue */
|
/* on remplit la structure msgQueue */
|
||||||
queue->elemCounter = 0;
|
queue->elemCounter = 0;
|
||||||
queue->head = queue->id;
|
strcpy(queue->headId,queue->id);
|
||||||
queue->tail = queue->id;
|
strcpy(queue->tailId,queue->id);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -84,6 +84,7 @@ msgSpace * msgSpaceCreate(
|
||||||
/* creation du poolData */
|
/* creation du poolData */
|
||||||
msgPoolDataIdIntern(poolDataTabId,externId);
|
msgPoolDataIdIntern(poolDataTabId,externId);
|
||||||
strcpy(mSAddr->poolDataTabId,poolDataTabId);
|
strcpy(mSAddr->poolDataTabId,poolDataTabId);
|
||||||
|
strcpy(mSAddr->externId,externId);
|
||||||
|
|
||||||
mSDataTabSemFd=sem_open(mSAddr->poolDataTabSemId,
|
mSDataTabSemFd=sem_open(mSAddr->poolDataTabSemId,
|
||||||
O_CREAT|O_EXCL,SEM_DEFAULT_MODE,1);
|
O_CREAT|O_EXCL,SEM_DEFAULT_MODE,1);
|
||||||
|
|
Loading…
Reference in a new issue