git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@7513
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
if(HAVE_RUBY)
set(SIMGRID_DEP "${SIMGRID_DEP} -lm -module")
if(HAVE_RUBY)
set(SIMGRID_DEP "${SIMGRID_DEP} -lm -module")
- exec_program("ln -sf ${PROJECT_DIRECTORY}/src/.libs/libsimgrid.so ${PROJECT_DIRECTORY}/examples/ruby/libsimgrid.so" "${PROJECT_DIRECTORY}" OUTPUT_VARIABLE LIEN_OK)
+ exec_program("ln -sf ${PROJECT_DIRECTORY}/src/.libs/libsimgrid.so ${PROJECT_DIRECTORY}/src/bindings/ruby/libsimgrid.so" "${PROJECT_DIRECTORY}" OUTPUT_VARIABLE LIEN_OK)
endif(HAVE_RUBY)
if(CMAKE_SYSTEM_NAME MATCHES "Darwin")
endif(HAVE_RUBY)
if(CMAKE_SYSTEM_NAME MATCHES "Darwin")
if(HAVE_LUA)
SET(SIMGRID_DEP "${SIMGRID_DEP} -ldl -l${liblua}")
if(HAVE_LUA)
SET(SIMGRID_DEP "${SIMGRID_DEP} -ldl -l${liblua}")
- exec_program("ln -sf ${PROJECT_DIRECTORY}/src/.libs/libsimgrid.so ${PROJECT_DIRECTORY}/examples/lua/libsimgrid.so" "${PROJECT_DIRECTORY}" OUTPUT_VARIABLE LIEN_OK)
+ exec_program("ln -sf ${PROJECT_DIRECTORY}/src/.libs/libsimgrid.so ${PROJECT_DIRECTORY}/src/bindings/lua/libsimgrid.so" "${PROJECT_DIRECTORY}" OUTPUT_VARIABLE LIEN_OK)
endif(HAVE_LUA)
if(HAVE_GTNETS)
endif(HAVE_LUA)
if(HAVE_GTNETS)
include MSG
#################################################
# Class Master
include MSG
#################################################
# Class Master
#####################
class PingPongTask < MSG::Task
#####################
class PingPongTask < MSG::Task
# The initialize method has no effect
@time
def setTime(t)
# The initialize method has no effect
@time
def setTime(t)
# Debug it with this command:
# make -C ../.. && valgrind ruby MasterSlave.rb --log=ruby.thres:debug 2>&1 | less
# Debug it with this command:
# make -C ../.. && valgrind ruby MasterSlave.rb --log=ruby.thres:debug 2>&1 | less
# 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'
#######################################