("Mmh. Something went wrong with '%s'. Nevermind. Let's keep going!",
slaves[i % slaves_count]->name);
MSG_task_destroy(task);
- } else if (a == MSG_TIMEOUT_FAILURE) {
+ } else if (a == MSG_TIMEOUT) {
INFO1
("Mmh. Got timeouted while speaking to '%s'. Nevermind. Let's keep going!",
slaves[i % slaves_count]->name);
INFO1("Mmh. Can't reach '%s'! Nevermind. Let's keep going!",
slaves[i]->name);
MSG_task_destroy(task);
- } else if (a == MSG_TIMEOUT_FAILURE) {
+ } else if (a == MSG_TIMEOUT) {
INFO1
("Mmh. Got timeouted while speaking to '%s'. Nevermind. Let's keep going!",
slaves[i % slaves_count]->name);
*/ /* Keep these code as binary values: java bindings manipulate | of these values */
typedef enum {
MSG_OK = 0, /**< @brief Everything is right. Keep on going this way ! */
- MSG_TIMEOUT_FAILURE=1, /**< @brief nothing good happened before the timer you provided elapsed */
+ MSG_TIMEOUT=1, /**< @brief nothing good happened before the timer you provided elapsed */
MSG_TRANSFER_FAILURE=2,/**< @brief There has been a problem during you task
transfer. Either the network is down or the remote host has been
shutdown. */
rb_raise(rb_eRuntimeError,"Transfer failure while Sending");
else if ( rv == MSG_HOST_FAILURE )
rb_raise(rb_eRuntimeError,"Host failure while Sending");
- else if ( rv == MSG_TIMEOUT_FAILURE )
+ else if ( rv == MSG_TIMEOUT )
rb_raise(rb_eRuntimeError,"Timeout failure while Sending");
else
rb_raise(rb_eRuntimeError,"MSG_task_send failed");
(*env)->ReleaseStringUTFChars(env, jalias, alias);
- jxbt_check_res("MSG_task_send_with_timeout()",rv, MSG_HOST_FAILURE|MSG_TRANSFER_FAILURE|MSG_TIMEOUT_FAILURE,
+ jxbt_check_res("MSG_task_send_with_timeout()",rv, MSG_HOST_FAILURE|MSG_TRANSFER_FAILURE|MSG_TIMEOUT,
bprintf("while sending task %s to mailbox %s", MSG_task_get_name(task),alias));
}
(*env)->ReleaseStringUTFChars(env, jalias, alias);
- jxbt_check_res("MSG_task_send_bounded()",rv, MSG_HOST_FAILURE|MSG_TRANSFER_FAILURE|MSG_TIMEOUT_FAILURE,
+ jxbt_check_res("MSG_task_send_bounded()",rv, MSG_HOST_FAILURE|MSG_TRANSFER_FAILURE|MSG_TIMEOUT,
bprintf("while sending task %s to mailbox %s with max rate %f", MSG_task_get_name(task),alias,(double)jmaxRate));
}
(*env)->ReleaseStringUTFChars(env, jalias, alias);
- jxbt_check_res("MSG_task_receive_ext()",rv, MSG_HOST_FAILURE|MSG_TRANSFER_FAILURE|MSG_TIMEOUT_FAILURE,
+ jxbt_check_res("MSG_task_receive_ext()",rv, MSG_HOST_FAILURE|MSG_TRANSFER_FAILURE|MSG_TIMEOUT,
bprintf("while receiving from mailbox %s",alias));
return (jobject) task->data;
ret = MSG_TRANSFER_FAILURE;
break;
case timeout_error:
- ret = MSG_TIMEOUT_FAILURE;
+ ret = MSG_TIMEOUT;
break;
default:
xbt_die(bprintf("Unhandled SIMIX network exception: %s",e.msg));
ret = MSG_TRANSFER_FAILURE;
break;
case timeout_error:
- ret = MSG_TIMEOUT_FAILURE;
+ ret = MSG_TIMEOUT;
break;
default:
xbt_die(bprintf("Unhandled SIMIX network exception: %s",e.msg));