*** empty log message ***
This commit is contained in:
parent
276d279d0e
commit
6f03de7d66
2 changed files with 26 additions and 8 deletions
|
@ -13,11 +13,22 @@ typedef char * msgSpaceQueueDataId;
|
|||
typedef char * msgSpaceQueueId;
|
||||
|
||||
typedef struct MsgPool {
|
||||
|
||||
msgSpacePoolId id;
|
||||
int bufferNb;
|
||||
int bufferSize;
|
||||
/* pid[] */
|
||||
int allocDispBuffer;
|
||||
int allocOverload
|
||||
/* liste des processus demandeurs */
|
||||
} msgPool;
|
||||
|
||||
typedef struct MsgSpace {
|
||||
|
||||
msgSpaceId id;
|
||||
int poolNb;
|
||||
int queueNb;
|
||||
/* TODO: queueId */
|
||||
int pid;
|
||||
msgSpacePoolDataId poolDataId;
|
||||
} msgSpace;
|
||||
|
||||
|
||||
|
|
|
@ -60,16 +60,23 @@ msgSpace * msgSpaceCreate(
|
|||
|
||||
/* on ferme le descripteur du fichier */
|
||||
close(mSFd);
|
||||
/* on ajoute spaceId a la liste des msgSpace connus */
|
||||
|
||||
/* on crée queueNb files de messages */
|
||||
/* TODO: on ajoute spaceId a la liste des msgSpace connus */
|
||||
|
||||
/* on créer poolNb pool de buffers */
|
||||
/* TODO: on crée queueNb files de messages */
|
||||
|
||||
/* on attache tout ce beau monde au spaceId */
|
||||
/* on créer poolNb pool de buffers */
|
||||
/* et on "attache" tout ce beau monde au spaceId */
|
||||
for (i=0;i<poolNb;i++){
|
||||
// creation d'une pool
|
||||
|
||||
/* on renvoie un pointeur sur le bon spaceId */
|
||||
return mSAddr;
|
||||
mSAddr->
|
||||
|
||||
}
|
||||
|
||||
|
||||
/* on renvoie un pointeur sur le bon spaceId */
|
||||
return mSAddr;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue