* remplissage du msgPoolData
This commit is contained in:
parent
b11cac0b6e
commit
bd4de043da
1 changed files with 7 additions and 6 deletions
|
@ -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
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue