* remplissage du msgPoolData

This commit is contained in:
glenux 2004-02-19 23:17:05 +00:00
parent 2abda632d5
commit d620182b84

View file

@ -18,7 +18,7 @@ msgSpace * msgSpaceCreate(
msgSpaceId spaceId,
int queueNb,
int poolNb,
msgPool * queueNbCar ){
msgPool * poolInfos ){
msgSpaceId nzgId;
/* msgSpaceList mSList; */
int mSFd; // shm file descriptor
@ -117,15 +117,16 @@ msgSpace * msgSpaceCreate(
strerror( errno ) );
return NULL;
}
close(mSPoolDataFd);
printf( "msgPoolData map addr is 0x%08x\n", (int)mSPoolDataAddr );
for (i=0;i<poolNb;i++){
// creation d'une pool
// mSAddr->
mSPoolDataAddr[i].bufferNb=poolInfos[i].bufferNb;
mSPoolDataAddr[i].bufferSize=poolInfos[i].bufferSize;
mSPoolDataAddr[i].allocDispBuffer=0;
mSPoolDataAddr[i].allocOverload=false;
//TODO: remplir l'ID : mSPoolDataAddr[i].id
}