*** empty log message ***

This commit is contained in:
glenux 2004-02-22 17:49:02 +00:00
parent ec304de330
commit e27b96d956
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, void * msgAllocate(msgSpace *space,
int pool, int pool,

View file

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

View file

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