*** empty log message ***

This commit is contained in:
glenux 2004-02-19 11:06:03 +00:00
parent 6f03de7d66
commit 45e9058a86
2 changed files with 10 additions and 8 deletions

View file

@ -12,32 +12,33 @@ typedef char * msgSpacePoolId;
typedef char * msgSpaceQueueDataId; typedef char * msgSpaceQueueDataId;
typedef char * msgSpaceQueueId; typedef char * msgSpaceQueueId;
/* pid[] */
/* liste des processus demandeurs */
typedef struct MsgPool { typedef struct MsgPool {
msgSpacePoolId id; msgSpacePoolId id;
int bufferNb; int bufferNb;
int bufferSize; int bufferSize;
/* pid[] */
int allocDispBuffer; int allocDispBuffer;
int allocOverload int allocOverload;
/* liste des processus demandeurs */
} msgPool; } msgPool;
/* TODO: queueId */
typedef struct MsgSpace { typedef struct MsgSpace {
msgSpaceId id; msgSpaceId id;
int poolNb; int poolNb;
int queueNb; int queueNb;
/* TODO: queueId */ int pid;
int pid;
msgSpacePoolDataId poolDataId; msgSpacePoolDataId poolDataId;
} msgSpace; } msgSpace;
/* struct msgSpaceListElem * next; */
typedef struct MsgSpaceListElem { typedef struct MsgSpaceListElem {
void * id; void * id;
int ownerPid; int ownerPid;
/* struct msgSpaceListElem * next; */ msgSpaceListElemId next;
msgSpaceListElemId next;
} * msgSpaceList, msgSpaceListElem; } * msgSpaceList, msgSpaceListElem;

View file

@ -16,6 +16,7 @@ msgSpace * msgSpaceCreate(
msgSpaceId nzgId; msgSpaceId nzgId;
msgSpaceList mSList; msgSpaceList mSList;
int mSFd; // shm file descriptor int mSFd; // shm file descriptor
int i;
static int mSIdNum=-1; static int mSIdNum=-1;
msgSpace * mSAddr; msgSpace * mSAddr;
@ -70,7 +71,7 @@ msgSpace * msgSpaceCreate(
for (i=0;i<poolNb;i++){ for (i=0;i<poolNb;i++){
// creation d'une pool // creation d'une pool
mSAddr-> // mSAddr->
} }