* modifié les valeurs (nombre de buffer alloués, remplissage des infos sur les buffers)
This commit is contained in:
parent
78ceb1b476
commit
9b48b4bd62
1 changed files with 9 additions and 1 deletions
|
@ -7,10 +7,18 @@ int main(void) {
|
||||||
|
|
||||||
msgSpaceId testId;
|
msgSpaceId testId;
|
||||||
msgSpace * mSPAC;
|
msgSpace * mSPAC;
|
||||||
|
msgPool poolInfos[2];
|
||||||
|
|
||||||
|
poolInfos[0].bufferNb=4;
|
||||||
|
poolInfos[0].bufferSize=200;
|
||||||
|
|
||||||
|
poolInfos[1].bufferNb=1;
|
||||||
|
poolInfos[1].bufferSize=700;
|
||||||
|
|
||||||
strcpy(testId,"test");
|
strcpy(testId,"test");
|
||||||
printf("RequestedId: %s\n",testId);
|
printf("RequestedId: %s\n",testId);
|
||||||
mSPAC=msgSpaceCreate(testId,0,0,NULL);
|
|
||||||
|
mSPAC=msgSpaceCreate(testId,0,2,poolInfos);
|
||||||
msgSpaceDelete(testId);
|
msgSpaceDelete(testId);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in a new issue