#include "xbt/log.h"
#include "xbt/asserts.h"
+#include "simix/smx_context_private.h"
+
/* Damn Ruby. They load their full config.h, which breaks since we also load ours.
* So, we undef the offending defines
*/
* Context related stuff *
* ********************* */
typedef struct s_smx_ctx_ruby {
- SMX_CTX_BASE_T;
+ s_smx_ctx_base_t super; /* Fields of super implementation */
VALUE process; // The Ruby Process Instance
//...
}s_smx_ctx_ruby_t,*smx_ctx_ruby_t;
VALUE rb_host_get_data(VALUE Class,VALUE host);
VALUE rb_host_is_avail(VALUE Class,VALUE host);
VALUE rb_host_process(VALUE Class,VALUE process);
+VALUE rb_host_get_all_hosts(VALUE Class);
/* Functions related to tasks */
void rb_task_free(m_task_t tk);
// New Method >>> Data NULL
VALUE rb_task_new(VALUE Class, VALUE name,VALUE comp_size,VALUE comm_size);
-void rb_task_set_data(VALUE Class,VALUE task,VALUE data); // Data as a String
-VALUE rb_task_get_data(VALUE Class,VALUE task);
VALUE rb_task_comp(VALUE Class,VALUE task); // Get Computation Size
VALUE rb_task_name(VALUE Class,VALUE task);
VALUE rb_task_execute(VALUE Class,VALUE task);