-// Put
-static void task_put(VALUE class,VALUE task,VALUE host)
-{
-
- m_task_t tk;
- m_host_t ht;
-
- Data_Get_Struct(task,m_task_t,tk);
- Data_Get_Struct(host,m_host_t,ht);
- MSG_task_put(tk,ht,PORT_22); //Channel set to 0
-
-}
-
-//get
-static VALUE task_get(VALUE class)
-{
-
- m_task_t task = NULL;
- int res = MSG_task_get(&task,PORT_22); // Channel set to 0
- xbt_assert0(res == MSG_OK, "MSG_task_get failed");
- return Data_Wrap_Struct(class, 0, task_free, task);
-
-}