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