summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
b1673b5)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@7496
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
# This program is free software; you can redistribute it and/or modify it
# under the terms of the license (GNU LGPL) which comes with this package. */
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# This program is free software; you can redistribute it and/or modify it
# under the terms of the license (GNU LGPL) which comes with this package. */
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
require 'thread'
#######################################
require 'thread'
#######################################
#######################################
class Semaphore
#######################################
class Semaphore
MSG::debug("Let's execute the main() of the Ruby process")
main(@pargs)
@schedEnd.release
MSG::debug("Let's execute the main() of the Ruby process")
main(@pargs)
@schedEnd.release
-# The Rest of Methods !!! To be Continued ... FIXME: what's missing?
end
############################################
# Task Extend from the native Class RbTask
############################################
class MSG::Task < MSG::RbTask
end
############################################
# Task Extend from the native Class RbTask
############################################
class MSG::Task < MSG::RbTask
+ super(self,mailbox)
+ end
+
+ def receive(mailbox)
+ super(self)
end
def listenFromHost(t_alias,host)
end
def listenFromHost(t_alias,host)
end
def setPriority(priority)
super(self,priority)
end
end
def setPriority(priority)
super(self,priority)
end
####################################################
# Host Extend from the native Class RbHost
####################################################
####################################################
# Host Extend from the native Class RbHost
####################################################
def isAvail
super(self)
end
def isAvail
super(self)
end