*** empty log message ***

This commit is contained in:
glenux 2004-02-23 13:48:56 +00:00
parent c5278d5d59
commit e04b91a4de

View file

@ -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;
}