*** empty log message ***

This commit is contained in:
glenux 2004-02-22 17:49:02 +00:00 committed by Glenn Y. Rolland
parent 9ca3ab3cbb
commit 5486c1c180
3 changed files with 9 additions and 5 deletions

View file

@ -7,8 +7,6 @@
*/
#define ANYPOOL -1
#define SPECIFICPOOL 0
void * msgAllocate(msgSpace *space,
int pool,

View file

@ -18,6 +18,9 @@
#define MSGSPACE_ID_LEN 32
#define ERR_UNHANDLED "Gérer mieu les erreurs"
#define ANYPOOL -1
#define SPECIFICPOOL 0
#ifndef SEM_FAILED
#define SEM_FAILED ((sem_t *)0)
#endif

View file

@ -5,7 +5,7 @@ int main(void) {
msgSpaceId testId;
msgSpace * mSPAC;
msgPool poolInfos[2];
msgPool poolInfos[3];
char * montext;
poolInfos[0].bufferNb=4;
@ -14,12 +14,15 @@ int main(void) {
poolInfos[1].bufferNb=5;
poolInfos[1].bufferSize=250;
poolInfos[2].bufferNb=3;
poolInfos[2].bufferSize=250;
strcpy(testId,"test");
printf("RequestedId: %s\n",testId);
mSPAC=msgSpaceCreate(testId,0,2,poolInfos);
mSPAC=msgSpaceCreate(testId,0,3,poolInfos);
montext=msgAllocate(mSPAC,1,200,0);
montext=msgAllocate(mSPAC,2,180,0);
// msgFree(mSPAC,(void *)montext);
msgSpaceDelete(testId);