git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@2922
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
XBT_PUBLIC gras_msg_cb_ctx_t gras_msg_cb_ctx_new(gras_socket_t expe,
gras_msgtype_t msgtype,
unsigned long int ID,
XBT_PUBLIC gras_msg_cb_ctx_t gras_msg_cb_ctx_new(gras_socket_t expe,
gras_msgtype_t msgtype,
unsigned long int ID,
double timeout);
XBT_PUBLIC void gras_msg_cb_ctx_free(gras_msg_cb_ctx_t ctx) ;
double timeout);
XBT_PUBLIC void gras_msg_cb_ctx_free(gras_msg_cb_ctx_t ctx) ;
- *ctx=gras_msg_cb_ctx_new(msg.expe,msg.type,msg.ID,60);
+ *ctx=gras_msg_cb_ctx_new(msg.expe, msg.type, msg.ID,
+ (msg.kind == e_gras_msg_kind_rpccall), 60);
if (msgt_got)
*msgt_got = xbt_dynar_search(msgt_want,msg.type);
if (msgt_got)
*msgt_got = xbt_dynar_search(msgt_want,msg.type);
gras_msg_cb_ctx_t gras_msg_cb_ctx_new(gras_socket_t expe,
gras_msgtype_t msgtype,
unsigned long int ID,
gras_msg_cb_ctx_t gras_msg_cb_ctx_new(gras_socket_t expe,
gras_msgtype_t msgtype,
unsigned long int ID,
double timeout) {
gras_msg_cb_ctx_t res=xbt_new(s_gras_msg_cb_ctx_t,1);
res->expeditor = expe;
res->msgtype = msgtype;
res->ID = ID;
res->timeout = timeout;
double timeout) {
gras_msg_cb_ctx_t res=xbt_new(s_gras_msg_cb_ctx_t,1);
res->expeditor = expe;
res->msgtype = msgtype;
res->ID = ID;
res->timeout = timeout;
+ res->answer_due = answer_due;
+
return res;
}
/* \brief Frees a message exchange context
return res;
}
/* \brief Frees a message exchange context