A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Ruby Msg Binding : new Methods and new Example
[simgrid.git]
/
src
/
bindings
/
ruby
/
rb_msg_process.c
diff --git
a/src/bindings/ruby/rb_msg_process.c
b/src/bindings/ruby/rb_msg_process.c
index
e6334cb
..
9b0f18c
100644
(file)
--- a/
src/bindings/ruby/rb_msg_process.c
+++ b/
src/bindings/ruby/rb_msg_process.c
@@
-61,7
+61,6
@@
void rb_process_schedule( VALUE ruby_process ) {
rb_funcall(ruby_process,rb_intern("schedule"),0);
}
rb_funcall(ruby_process,rb_intern("schedule"),0);
}
-
/***************************************************
Function for Native Process ( Bound ) Management
/***************************************************
Function for Native Process ( Bound ) Management
@@
-141,20
+140,24
@@
void rb_process_kill_down(VALUE class,VALUE ruby_process) {
VALUE rb_process_getHost(VALUE class,VALUE ruby_process) {
m_process_t process = rb_process_to_native(ruby_process);
m_host_t host;
VALUE rb_process_getHost(VALUE class,VALUE ruby_process) {
m_process_t process = rb_process_to_native(ruby_process);
m_host_t host;
+
if (!process) {
rb_raise(rb_eRuntimeError,"Process Not Bound...while getting Host");
return Qnil; // NULL
}
if (!process) {
rb_raise(rb_eRuntimeError,"Process Not Bound...while getting Host");
return Qnil; // NULL
}
-
+
host = MSG_process_get_host(process);
host = MSG_process_get_host(process);
-
+
+ return Data_Wrap_Struct(class, 0, rb_host_free, host);
+ /*if(host->data) printf("Ok\n");
+
if(!host->data) {
rb_raise (rb_eRuntimeError,"MSG_process_get_host() failed");
return Qnil;
}
if(!host->data) {
rb_raise (rb_eRuntimeError,"MSG_process_get_host() failed");
return Qnil;
}
-
- return Data_Wrap_Struct(class, 0, rb_host_free, host);
+ printf("Houuuuuuuuuuuuuuna3!!\n");
+ return Data_Wrap_Struct(class, 0, rb_host_free, host);
*/
}
void rb_process_exit(VALUE class,VALUE ruby_process) {
}
void rb_process_exit(VALUE class,VALUE ruby_process) {