*** empty log message ***
This commit is contained in:
parent
546b279c79
commit
cf22adf9ac
1 changed files with 6 additions and 4 deletions
|
@ -190,10 +190,12 @@ void * msgAllocate(msgSpace *space,
|
|||
|
||||
mSPoolFd=shm_open(resultPoolId,O_RDWR,MSGSPACE_DEFAULT_MODE);
|
||||
|
||||
|
||||
int bufferFreeSize=mSPoolDataTabAddr[selectedPoolIndex].bufferSize;
|
||||
resultAddr = mmap( 0,
|
||||
mSPoolDataTabAddr[selectedPoolIndex].bufferSize,
|
||||
bufferFreeSize,
|
||||
PROT_READ | PROT_WRITE,
|
||||
MAP_SHARED, mSPoolFd, 0 );
|
||||
MAP_SHARED, mSPoolFd, bufferFreeSize*bufferFreeIndex );
|
||||
|
||||
//TODO:
|
||||
/* - on s'enregistre aupres de ce buffer */
|
||||
|
@ -206,8 +208,8 @@ void * msgAllocate(msgSpace *space,
|
|||
sem_post(poolDataTabSemFd);
|
||||
sem_close(poolDataTabSemFd);
|
||||
|
||||
/* TODO: unmapper le msgPoolDataTab */
|
||||
|
||||
/* unmapper le msgPoolDataTab */
|
||||
munmap(mSPoolDataTabAddr,(space->poolNb) * sizeof( msgPoolData ));
|
||||
|
||||
return resultAddr;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue