/home/dko/projects/mobilec/trunk/src/include/agent_mailbox.h File Reference

Go to the source code of this file.

Data Structures

struct  agent_mailbox_s

Typedefs

typedef struct agent_mailbox_s agent_mailbox_t
typedef agent_mailbox_tagent_mailbox_p

Functions

agent_mailbox_p agent_mailbox_New (void)
int agent_mailbox_Destroy (agent_mailbox_t *mailbox)
int agent_mailbox_Post (agent_mailbox_p mailbox, fipa_acl_message_t *message)
fipa_acl_message_tagent_mailbox_Retrieve (agent_mailbox_p mailbox)
fipa_acl_message_tagent_mailbox_WaitRetrieve (agent_mailbox_p mailbox)


Typedef Documentation

typedef agent_mailbox_t* agent_mailbox_p

Definition at line 9 of file agent_mailbox.h.

typedef struct agent_mailbox_s agent_mailbox_t


Function Documentation

int agent_mailbox_Destroy ( agent_mailbox_t mailbox  ) 

Definition at line 12 of file agent_mailbox.c.

References agent_mailbox_s::mail_queue.

Referenced by agent_Destroy().

agent_mailbox_p agent_mailbox_New ( void   ) 

Definition at line 3 of file agent_mailbox.c.

References agent_mailbox_s::mail_queue.

Referenced by agent_Initialize().

int agent_mailbox_Post ( agent_mailbox_p  mailbox,
fipa_acl_message_t message 
)

Definition at line 21 of file agent_mailbox.c.

References agent_mailbox_s::mail_queue.

Referenced by acc_Thread(), and MC_AclPost().

fipa_acl_message_t* agent_mailbox_Retrieve ( agent_mailbox_p  mailbox  ) 

Definition at line 27 of file agent_mailbox.c.

References agent_mailbox_s::mail_queue.

Referenced by agent_mailbox_WaitRetrieve(), and MC_AclRetrieve().

fipa_acl_message_t* agent_mailbox_WaitRetrieve ( agent_mailbox_p  mailbox  ) 

Definition at line 32 of file agent_mailbox.c.

References agent_mailbox_Retrieve(), COND_WAIT, agent_mailbox_s::mail_queue, MUTEX_LOCK, and MUTEX_UNLOCK.

Referenced by MC_AclWaitRetrieve().


Generated on Fri May 16 14:49:55 2008 for Mobile-C by  doxygen 1.5.4