Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Do not include C files. Instead, add them to the project file. Hopefully, this will...
authormquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Fri, 16 Nov 2007 00:31:55 +0000 (00:31 +0000)
committermquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Fri, 16 Nov 2007 00:31:55 +0000 (00:31 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@5050 48e7efb5-ca39-0410-a469-dd3cf9ba447f

13 files changed:
src/Makefile.am
src/Makefile.in
src/java/jmsg.c
src/java/jmsg_parallel_task.c
src/java/jmsg_process.c
src/xbt/xbt_context.c
src/xbt/xbt_context_factory.h
src/xbt/xbt_context_private.h
src/xbt/xbt_jcontext.c
src/xbt/xbt_jcontext.h
src/xbt/xbt_thread_context.c
src/xbt/xbt_thread_context.h
src/xbt/xbt_ucontext.h

index 25a45af..82a3066 100644 (file)
@@ -173,9 +173,11 @@ SURF_SRC= \
   surf/workstation_KCCFLN05.c   surf/workstation_ptask_L07.c
 
 if CONTEXT_THREADS
-  SURF_SRC += xbt/xbt_os_thread.c
+  SURF_SRC += xbt/xbt_os_thread.c        \
+              xbt/xbt_thread_context.c  
 else  
-  SURF_SRC += xbt/xbt_os_thread_stubs.c
+  SURF_SRC += xbt/xbt_os_thread_stubs.c  \
+              xbt/xbt_ucontext.c
 endif
 
 GTNETS_SRC= \
@@ -212,6 +214,7 @@ MSG_SRC=  msg/msg_config.c \
   msg/global.c msg/environment.c msg/deployment.c 
 
 JMSG_C_SRC = \
+  xbt/xbt_jcontext.c \
   java/jxbt_utilities.c     java/jxbt_utilities.h      \
   java/jmsg.c               java/jmsg.h                \
   java/jmsg_channel.c       java/jmsg_channel.h        \
@@ -337,7 +340,10 @@ endif
 ## Java cruft
 
 EXTRA_DIST+=$(JMSG_JAVA_SRC)
+
 if HAVE_JAVA
+libsimgrid_la_SOURCES += $(JMSG_C_SRC) # add the binding support to the library
+
 clean-local:
        -rm -rf .classes
 
index 9320038..710093b 100644 (file)
@@ -52,8 +52,12 @@ POST_UNINSTALL = :
 build_triplet = @build@
 host_triplet = @host@
 target_triplet = @target@
-@CONTEXT_THREADS_TRUE@am__append_1 = xbt/xbt_os_thread.c
-@CONTEXT_THREADS_FALSE@am__append_2 = xbt/xbt_os_thread_stubs.c
+@CONTEXT_THREADS_TRUE@am__append_1 = xbt/xbt_os_thread.c        \
+@CONTEXT_THREADS_TRUE@              xbt/xbt_thread_context.c  
+
+@CONTEXT_THREADS_FALSE@am__append_2 = xbt/xbt_os_thread_stubs.c  \
+@CONTEXT_THREADS_FALSE@              xbt/xbt_ucontext.c
+
 @HAVE_GTNETS_FALSE@am__append_3 = $(GTNETS_SRC)
 @HAVE_SDP_FALSE@am__append_4 = surf/sdp.c
 
@@ -61,10 +65,11 @@ target_triplet = @target@
 @IS_WINDOWS_TRUE@am__append_5 = -Wl,--output-def,libgras.def
 @IS_WINDOWS_TRUE@am__append_6 = -Wl,--output-def,libsimgrid.def
 @IS_WINDOWS_TRUE@am__append_7 = -Wl,--output-def,libsmpi.def
-@HAVE_JAVA_FALSE@am__append_8 = $(JMSG_C_SRC) $(MSG_SRC)
+@HAVE_JAVA_TRUE@am__append_8 = $(JMSG_C_SRC) # add the binding support to the library
+@HAVE_JAVA_FALSE@am__append_9 = $(JMSG_C_SRC) $(MSG_SRC)
 @GRAMINE_MODE_FALSE@noinst_PROGRAMS = testall$(EXEEXT)
 @GRAMINE_MODE_FALSE@TESTS = testall$(EXEEXT)
-@GRAMINE_MODE_FALSE@am__append_9 = $(testall_SOURCES)
+@GRAMINE_MODE_FALSE@am__append_10 = $(testall_SOURCES)
 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
        $(srcdir)/gras_config.h.in $(srcdir)/ucontext_stack.h.in \
        $(top_srcdir)/acmacro/dist-files.mk
@@ -132,7 +137,8 @@ am__libsimgrid_la_SOURCES_DIST = xbt/snprintf.c xbt/xbt_str.c \
        surf/surf.c surf/surfxml_parse.c surf/cpu.c surf/network.c \
        surf/workstation.c surf/surf_timer.c \
        surf/workstation_KCCFLN05.c surf/workstation_ptask_L07.c \
-       xbt/xbt_os_thread.c xbt/xbt_os_thread_stubs.c \
+       xbt/xbt_os_thread.c xbt/xbt_thread_context.c \
+       xbt/xbt_os_thread_stubs.c xbt/xbt_ucontext.c \
        surf/gtnets/gtnets_simulator.cc surf/gtnets/gtnets_topology.cc \
        surf/gtnets/gtnets_interface.cc surf/network_gtnets.c \
        surf/sdp.c simix/smx_global.c simix/smx_deployment.c \
@@ -158,9 +164,16 @@ am__libsimgrid_la_SOURCES_DIST = xbt/snprintf.c xbt/xbt_str.c \
        gras/Virtu/sg_process.c gras/Virtu/sg_dns.c gras/Msg/sg_msg.c \
        xbt/xbt_sg_synchro.c xbt/xbt_sg_time.c amok/amok_base.c \
        amok/Bandwidth/bandwidth.c amok/Bandwidth/saturate.c \
-       amok/PeerManagement/peermanagement.c
-@CONTEXT_THREADS_TRUE@am__objects_6 = xbt_os_thread.lo
-@CONTEXT_THREADS_FALSE@am__objects_7 = xbt_os_thread_stubs.lo
+       amok/PeerManagement/peermanagement.c xbt/xbt_jcontext.c \
+       java/jxbt_utilities.c java/jxbt_utilities.h java/jmsg.c \
+       java/jmsg.h java/jmsg_channel.c java/jmsg_channel.h \
+       java/jmsg_host.c java/jmsg_host.h java/jmsg_parallel_task.c \
+       java/jmsg_parallel_task.h java/jmsg_process.c \
+       java/jmsg_process.h java/jmsg_task.c java/jmsg_task.h
+@CONTEXT_THREADS_TRUE@am__objects_6 = xbt_os_thread.lo \
+@CONTEXT_THREADS_TRUE@ xbt_thread_context.lo
+@CONTEXT_THREADS_FALSE@am__objects_7 = xbt_os_thread_stubs.lo \
+@CONTEXT_THREADS_FALSE@        xbt_ucontext.lo
 am__objects_8 = maxmin.lo fair_bottleneck.lo lagrange.lo trace_mgr.lo \
        surf.lo surfxml_parse.lo cpu.lo network.lo workstation.lo \
        surf_timer.lo workstation_KCCFLN05.lo workstation_ptask_L07.lo \
@@ -179,18 +192,23 @@ am__objects_15 = sd_global.lo sd_link.lo sd_task.lo sd_workstation.lo
 am__objects_16 = xbt_sg_synchro.lo xbt_sg_time.lo
 am__objects_17 = sg_transport.lo transport_plugin_sg.lo sg_emul.lo \
        sg_process.lo sg_dns.lo sg_msg.lo $(am__objects_16)
+am__objects_18 = xbt_jcontext.lo jxbt_utilities.lo jmsg.lo \
+       jmsg_channel.lo jmsg_host.lo jmsg_parallel_task.lo \
+       jmsg_process.lo jmsg_task.lo
+@HAVE_JAVA_TRUE@am__objects_19 = $(am__objects_18)
 am_libsimgrid_la_OBJECTS = $(am__objects_1) $(am__objects_8) \
        $(am__objects_10) $(am__objects_11) $(am__objects_12) \
        $(am__objects_13) $(am__objects_14) $(am__objects_15) \
-       $(am__objects_2) $(am__objects_17) $(am__objects_5)
+       $(am__objects_2) $(am__objects_17) $(am__objects_5) \
+       $(am__objects_19)
 libsimgrid_la_OBJECTS = $(am_libsimgrid_la_OBJECTS)
 libsimgrid_la_LINK = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) \
        $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(AM_CXXFLAGS) \
        $(CXXFLAGS) $(libsimgrid_la_LDFLAGS) $(LDFLAGS) -o $@
 libsmpi_la_DEPENDENCIES = libsimgrid.la
-am__objects_18 = smpi_base.lo smpi_bench.lo smpi_global.lo smpi_mpi.lo \
+am__objects_20 = smpi_base.lo smpi_bench.lo smpi_global.lo smpi_mpi.lo \
        smpi_sender.lo smpi_receiver.lo smpi_util.lo
-am_libsmpi_la_OBJECTS = $(am__objects_18)
+am_libsmpi_la_OBJECTS = $(am__objects_20)
 libsmpi_la_OBJECTS = $(am_libsmpi_la_OBJECTS)
 libsmpi_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
        $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
@@ -201,12 +219,12 @@ am__testall_SOURCES_DIST = @builddir@/cunit_unit.c \
        @builddir@/dict_unit.c @builddir@/set_unit.c \
        @builddir@/swag_unit.c @builddir@/xbt_str_unit.c \
        @builddir@/config_unit.c @builddir@/simgrid_units_main.c
-@GRAMINE_MODE_FALSE@am__objects_19 = cunit_unit.$(OBJEXT) \
+@GRAMINE_MODE_FALSE@am__objects_21 = cunit_unit.$(OBJEXT) \
 @GRAMINE_MODE_FALSE@   ex_unit.$(OBJEXT) dynar_unit.$(OBJEXT) \
 @GRAMINE_MODE_FALSE@   dict_unit.$(OBJEXT) set_unit.$(OBJEXT) \
 @GRAMINE_MODE_FALSE@   swag_unit.$(OBJEXT) xbt_str_unit.$(OBJEXT) \
 @GRAMINE_MODE_FALSE@   config_unit.$(OBJEXT)
-@GRAMINE_MODE_FALSE@am_testall_OBJECTS = $(am__objects_19) \
+@GRAMINE_MODE_FALSE@am_testall_OBJECTS = $(am__objects_21) \
 @GRAMINE_MODE_FALSE@   simgrid_units_main.$(OBJEXT)
 testall_OBJECTS = $(am_testall_OBJECTS)
 @GRAMINE_MODE_FALSE@testall_DEPENDENCIES = libgras.la
@@ -402,7 +420,7 @@ EXTRA_DIST = portable.h xbt/mallocator_private.h xbt/dynar_private.h \
        amok/Bandwidth/bandwidth_private.h amok/amok_modinter.h \
        include/simix/simix.h include/simix/datatypes.h \
        simix/private.h smpi/private.h $(am__append_3) $(am__append_4) \
-       $(JMSG_JAVA_SRC) $(am__append_8) $(am__append_9)
+       $(JMSG_JAVA_SRC) $(am__append_9) $(am__append_10)
 
 #LIBRARY_VERSION= 0:0:0
 #                 | | |
@@ -524,6 +542,7 @@ MSG_SRC = msg/msg_config.c \
   msg/global.c msg/environment.c msg/deployment.c 
 
 JMSG_C_SRC = \
+  xbt/xbt_jcontext.c \
   java/jxbt_utilities.c     java/jxbt_utilities.h      \
   java/jmsg.c               java/jmsg.h                \
   java/jmsg_channel.c       java/jmsg_channel.h        \
@@ -598,11 +617,9 @@ lib_LTLIBRARIES = libsimgrid.la libgras.la libsmpi.la
 libgras_la_SOURCES = $(XBT_SRC) $(GRAS_COMMON_SRC) $(GRAS_RL_SRC) $(AMOK_SRC)
 libgras_la_LDFLAGS = -no-undefined $(VERSION_INFO) @GRAS_DEP@ \
        @LD_DYNAMIC_FLAGS@ -lm $(am__append_5)
-libsimgrid_la_SOURCES = $(XBT_SRC) $(SURF_SRC) $(GTNETS_USED) $(SDP_SRC) \
-                        $(SIMIX_SRC) $(CTX_SRC) \
-                        $(MSG_SRC) $(SIMDAG_SRC) \
-                       $(GRAS_COMMON_SRC) $(GRAS_SG_SRC) $(AMOK_SRC)
-
+libsimgrid_la_SOURCES = $(XBT_SRC) $(SURF_SRC) $(GTNETS_USED) \
+       $(SDP_SRC) $(SIMIX_SRC) $(CTX_SRC) $(MSG_SRC) $(SIMDAG_SRC) \
+       $(GRAS_COMMON_SRC) $(GRAS_SG_SRC) $(AMOK_SRC) $(am__append_8)
 libsimgrid_la_LDFLAGS = -no-undefined $(VERSION_INFO) @SIMGRID_DEP@ \
        @LD_DYNAMIC_FLAGS@ -lm $(am__append_6)
 
@@ -799,6 +816,13 @@ distclean-compile:
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gtnets_topology.Plo@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/heap.Plo@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/host.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/jmsg.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/jmsg_channel.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/jmsg_host.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/jmsg_parallel_task.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/jmsg_process.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/jmsg_task.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/jxbt_utilities.Plo@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lagrange.Plo@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/log.Plo@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/m_process.Plo@am__quote@
@@ -862,6 +886,7 @@ distclean-compile:
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/workstation_KCCFLN05.Plo@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/workstation_ptask_L07.Plo@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xbt_context.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xbt_jcontext.Plo@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xbt_log_appender_file.Plo@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xbt_log_layout_format.Plo@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xbt_log_layout_simple.Plo@am__quote@
@@ -879,6 +904,8 @@ distclean-compile:
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xbt_str.Plo@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xbt_str_unit.Po@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xbt_strbuff.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xbt_thread_context.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xbt_ucontext.Plo@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xbt_virtu.Plo@am__quote@
 
 .c.o:
@@ -1413,6 +1440,13 @@ workstation_ptask_L07.lo: surf/workstation_ptask_L07.c
 @AMDEP_TRUE@@am__fastdepCC_FALSE@      DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
 @am__fastdepCC_FALSE@  $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o workstation_ptask_L07.lo `test -f 'surf/workstation_ptask_L07.c' || echo '$(srcdir)/'`surf/workstation_ptask_L07.c
 
+xbt_thread_context.lo: xbt/xbt_thread_context.c
+@am__fastdepCC_TRUE@   $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT xbt_thread_context.lo -MD -MP -MF $(DEPDIR)/xbt_thread_context.Tpo -c -o xbt_thread_context.lo `test -f 'xbt/xbt_thread_context.c' || echo '$(srcdir)/'`xbt/xbt_thread_context.c
+@am__fastdepCC_TRUE@   mv -f $(DEPDIR)/xbt_thread_context.Tpo $(DEPDIR)/xbt_thread_context.Plo
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      source='xbt/xbt_thread_context.c' object='xbt_thread_context.lo' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@  $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o xbt_thread_context.lo `test -f 'xbt/xbt_thread_context.c' || echo '$(srcdir)/'`xbt/xbt_thread_context.c
+
 xbt_os_thread_stubs.lo: xbt/xbt_os_thread_stubs.c
 @am__fastdepCC_TRUE@   $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT xbt_os_thread_stubs.lo -MD -MP -MF $(DEPDIR)/xbt_os_thread_stubs.Tpo -c -o xbt_os_thread_stubs.lo `test -f 'xbt/xbt_os_thread_stubs.c' || echo '$(srcdir)/'`xbt/xbt_os_thread_stubs.c
 @am__fastdepCC_TRUE@   mv -f $(DEPDIR)/xbt_os_thread_stubs.Tpo $(DEPDIR)/xbt_os_thread_stubs.Plo
@@ -1420,6 +1454,13 @@ xbt_os_thread_stubs.lo: xbt/xbt_os_thread_stubs.c
 @AMDEP_TRUE@@am__fastdepCC_FALSE@      DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
 @am__fastdepCC_FALSE@  $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o xbt_os_thread_stubs.lo `test -f 'xbt/xbt_os_thread_stubs.c' || echo '$(srcdir)/'`xbt/xbt_os_thread_stubs.c
 
+xbt_ucontext.lo: xbt/xbt_ucontext.c
+@am__fastdepCC_TRUE@   $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT xbt_ucontext.lo -MD -MP -MF $(DEPDIR)/xbt_ucontext.Tpo -c -o xbt_ucontext.lo `test -f 'xbt/xbt_ucontext.c' || echo '$(srcdir)/'`xbt/xbt_ucontext.c
+@am__fastdepCC_TRUE@   mv -f $(DEPDIR)/xbt_ucontext.Tpo $(DEPDIR)/xbt_ucontext.Plo
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      source='xbt/xbt_ucontext.c' object='xbt_ucontext.lo' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@  $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o xbt_ucontext.lo `test -f 'xbt/xbt_ucontext.c' || echo '$(srcdir)/'`xbt/xbt_ucontext.c
+
 network_gtnets.lo: surf/network_gtnets.c
 @am__fastdepCC_TRUE@   $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT network_gtnets.lo -MD -MP -MF $(DEPDIR)/network_gtnets.Tpo -c -o network_gtnets.lo `test -f 'surf/network_gtnets.c' || echo '$(srcdir)/'`surf/network_gtnets.c
 @am__fastdepCC_TRUE@   mv -f $(DEPDIR)/network_gtnets.Tpo $(DEPDIR)/network_gtnets.Plo
@@ -1637,6 +1678,62 @@ xbt_sg_time.lo: xbt/xbt_sg_time.c
 @AMDEP_TRUE@@am__fastdepCC_FALSE@      DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
 @am__fastdepCC_FALSE@  $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o xbt_sg_time.lo `test -f 'xbt/xbt_sg_time.c' || echo '$(srcdir)/'`xbt/xbt_sg_time.c
 
+xbt_jcontext.lo: xbt/xbt_jcontext.c
+@am__fastdepCC_TRUE@   $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT xbt_jcontext.lo -MD -MP -MF $(DEPDIR)/xbt_jcontext.Tpo -c -o xbt_jcontext.lo `test -f 'xbt/xbt_jcontext.c' || echo '$(srcdir)/'`xbt/xbt_jcontext.c
+@am__fastdepCC_TRUE@   mv -f $(DEPDIR)/xbt_jcontext.Tpo $(DEPDIR)/xbt_jcontext.Plo
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      source='xbt/xbt_jcontext.c' object='xbt_jcontext.lo' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@  $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o xbt_jcontext.lo `test -f 'xbt/xbt_jcontext.c' || echo '$(srcdir)/'`xbt/xbt_jcontext.c
+
+jxbt_utilities.lo: java/jxbt_utilities.c
+@am__fastdepCC_TRUE@   $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT jxbt_utilities.lo -MD -MP -MF $(DEPDIR)/jxbt_utilities.Tpo -c -o jxbt_utilities.lo `test -f 'java/jxbt_utilities.c' || echo '$(srcdir)/'`java/jxbt_utilities.c
+@am__fastdepCC_TRUE@   mv -f $(DEPDIR)/jxbt_utilities.Tpo $(DEPDIR)/jxbt_utilities.Plo
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      source='java/jxbt_utilities.c' object='jxbt_utilities.lo' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@  $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o jxbt_utilities.lo `test -f 'java/jxbt_utilities.c' || echo '$(srcdir)/'`java/jxbt_utilities.c
+
+jmsg.lo: java/jmsg.c
+@am__fastdepCC_TRUE@   $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT jmsg.lo -MD -MP -MF $(DEPDIR)/jmsg.Tpo -c -o jmsg.lo `test -f 'java/jmsg.c' || echo '$(srcdir)/'`java/jmsg.c
+@am__fastdepCC_TRUE@   mv -f $(DEPDIR)/jmsg.Tpo $(DEPDIR)/jmsg.Plo
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      source='java/jmsg.c' object='jmsg.lo' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@  $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o jmsg.lo `test -f 'java/jmsg.c' || echo '$(srcdir)/'`java/jmsg.c
+
+jmsg_channel.lo: java/jmsg_channel.c
+@am__fastdepCC_TRUE@   $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT jmsg_channel.lo -MD -MP -MF $(DEPDIR)/jmsg_channel.Tpo -c -o jmsg_channel.lo `test -f 'java/jmsg_channel.c' || echo '$(srcdir)/'`java/jmsg_channel.c
+@am__fastdepCC_TRUE@   mv -f $(DEPDIR)/jmsg_channel.Tpo $(DEPDIR)/jmsg_channel.Plo
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      source='java/jmsg_channel.c' object='jmsg_channel.lo' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@  $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o jmsg_channel.lo `test -f 'java/jmsg_channel.c' || echo '$(srcdir)/'`java/jmsg_channel.c
+
+jmsg_host.lo: java/jmsg_host.c
+@am__fastdepCC_TRUE@   $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT jmsg_host.lo -MD -MP -MF $(DEPDIR)/jmsg_host.Tpo -c -o jmsg_host.lo `test -f 'java/jmsg_host.c' || echo '$(srcdir)/'`java/jmsg_host.c
+@am__fastdepCC_TRUE@   mv -f $(DEPDIR)/jmsg_host.Tpo $(DEPDIR)/jmsg_host.Plo
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      source='java/jmsg_host.c' object='jmsg_host.lo' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@  $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o jmsg_host.lo `test -f 'java/jmsg_host.c' || echo '$(srcdir)/'`java/jmsg_host.c
+
+jmsg_parallel_task.lo: java/jmsg_parallel_task.c
+@am__fastdepCC_TRUE@   $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT jmsg_parallel_task.lo -MD -MP -MF $(DEPDIR)/jmsg_parallel_task.Tpo -c -o jmsg_parallel_task.lo `test -f 'java/jmsg_parallel_task.c' || echo '$(srcdir)/'`java/jmsg_parallel_task.c
+@am__fastdepCC_TRUE@   mv -f $(DEPDIR)/jmsg_parallel_task.Tpo $(DEPDIR)/jmsg_parallel_task.Plo
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      source='java/jmsg_parallel_task.c' object='jmsg_parallel_task.lo' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@  $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o jmsg_parallel_task.lo `test -f 'java/jmsg_parallel_task.c' || echo '$(srcdir)/'`java/jmsg_parallel_task.c
+
+jmsg_process.lo: java/jmsg_process.c
+@am__fastdepCC_TRUE@   $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT jmsg_process.lo -MD -MP -MF $(DEPDIR)/jmsg_process.Tpo -c -o jmsg_process.lo `test -f 'java/jmsg_process.c' || echo '$(srcdir)/'`java/jmsg_process.c
+@am__fastdepCC_TRUE@   mv -f $(DEPDIR)/jmsg_process.Tpo $(DEPDIR)/jmsg_process.Plo
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      source='java/jmsg_process.c' object='jmsg_process.lo' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@  $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o jmsg_process.lo `test -f 'java/jmsg_process.c' || echo '$(srcdir)/'`java/jmsg_process.c
+
+jmsg_task.lo: java/jmsg_task.c
+@am__fastdepCC_TRUE@   $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT jmsg_task.lo -MD -MP -MF $(DEPDIR)/jmsg_task.Tpo -c -o jmsg_task.lo `test -f 'java/jmsg_task.c' || echo '$(srcdir)/'`java/jmsg_task.c
+@am__fastdepCC_TRUE@   mv -f $(DEPDIR)/jmsg_task.Tpo $(DEPDIR)/jmsg_task.Plo
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      source='java/jmsg_task.c' object='jmsg_task.lo' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@  $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o jmsg_task.lo `test -f 'java/jmsg_task.c' || echo '$(srcdir)/'`java/jmsg_task.c
+
 smpi_base.lo: smpi/smpi_base.c
 @am__fastdepCC_TRUE@   $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT smpi_base.lo -MD -MP -MF $(DEPDIR)/smpi_base.Tpo -c -o smpi_base.lo `test -f 'smpi/smpi_base.c' || echo '$(srcdir)/'`smpi/smpi_base.c
 @am__fastdepCC_TRUE@   mv -f $(DEPDIR)/smpi_base.Tpo $(DEPDIR)/smpi_base.Plo
@@ -2142,6 +2239,7 @@ uninstall-am: uninstall-binSCRIPTS uninstall-jarDATA \
        uninstall-am uninstall-binSCRIPTS uninstall-jarDATA \
        uninstall-libLTLIBRARIES
 
+
 @HAVE_JAVA_TRUE@clean-local:
 @HAVE_JAVA_TRUE@       -rm -rf .classes
 
index 2495f52..9d7c85a 100644 (file)
@@ -12,7 +12,8 @@
 #include "msg/msg.h"
 #include "msg/private.h"
 #include "simix/private.h"
-#include "xbt/xbt_context_private.h"
+#include "xbt/xbt_jcontext.h"
+#include "xbt/xbt_context_factory.h"
 
 #include "jmsg_process.h"
 #include "jmsg_host.h"
@@ -23,6 +24,8 @@
 
 #include "jmsg.h"
 
+XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(jmsg);
+
 static JavaVM * __java_vm = NULL;
 
 static jobject
index 7f9b834..1af0f30 100644 (file)
@@ -15,6 +15,8 @@
 #include "jmsg_parallel_task.h"
 #include "jxbt_utilities.h"
 
+XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(jmsg);
+
 jobject
 jparallel_task_ref(JNIEnv* env, jobject jparallel_task) {
   jobject newref = (*env)->NewGlobalRef(env,jparallel_task); 
index 286dbd8..4121efd 100644 (file)
@@ -16,6 +16,7 @@
 
 #include "xbt/xbt_jcontext.h"
 
+XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(jmsg);
 
 jobject
 jprocess_new_global_ref(jobject jprocess,JNIEnv* env) {
index 418b125..e7975f1 100644 (file)
 #include "xbt_context_factory.h"\r
 \r
 /* the context associated with the current process                             */\r
-static xbt_context_t \r
-current_context = NULL;\r
+xbt_context_t current_context = NULL;\r
 \r
 /* the context associated with the maestro                                             */\r
-static xbt_context_t \r
-maestro_context = NULL;\r
+xbt_context_t  maestro_context = NULL;\r
 \r
 \r
 /* this list contains the contexts to destroy                                  */\r
-static xbt_swag_t \r
-context_to_destroy = NULL;\r
+xbt_swag_t context_to_destroy = NULL;\r
 \r
 /* this list contains the contexts in use                                              */\r
-static xbt_swag_t \r
-context_living = NULL;\r
+xbt_swag_t context_living = NULL;\r
 \r
 /* the context factory used to create the appropriate context  \r
  * each context implementation define its own context factory\r
@@ -42,18 +38,6 @@ context_living = NULL;
 static xbt_context_factory_t\r
 context_factory = NULL;\r
 \r
-/* java implementation of the context */\r
-#include "xbt_jcontext.c"\r
-\r
-#ifdef CONTEXT_THREADS\r
-/* use the native thread implementation of the context */\r
-#include "xbt_thread_context.c"\r
-#elif !defined(WIN32)\r
-/* use the ucontext    based context           */\r
-#  include "xbt_ucontext.c" \r
-#endif \r
-\r
-\r
 /**\r
  * This function is call by the xbt_init() function to initialize the context module.\r
  */\r
index b6f1a99..7ad0ad0 100644 (file)
@@ -27,11 +27,6 @@ typedef struct s_xbt_context_factory
        \r
 }s_xbt_context_factory_t;\r
 \r
-#ifndef _XBT_CONTEXT_FACTORY_T_DEFINED\r
-typedef struct s_xbt_context_factory* xbt_context_factory_t;\r
-#define _XBT_CONTEXT_FACTORY_T_DEFINED\r
-#endif /* !_XBT_CONTEXT_FACTORY_T_DEFINED */\r
-\r
 /**\r
  * This function select a context factory associated with the name specified by\r
  * the parameter name.\r
index 5e061e4..9f7bf2c 100644 (file)
@@ -3,6 +3,7 @@
 \r
 #include "xbt/sysdep.h"\r
 #include "xbt/xbt_context.h"\r
+#include "xbt/swag.h"\r
 \r
 SG_BEGIN_DECL()\r
 \r
@@ -41,17 +42,22 @@ typedef struct s_xbt_context
        XBT_CTX_BASE_T;\r
 }s_xbt_context_t;\r
 \r
-SG_END_DECL()\r
-       \r
+/* Important guys */\r
+extern xbt_context_t current_context;\r
+extern xbt_context_t maestro_context;\r
+/* All dudes lists */\r
+extern xbt_swag_t context_living;\r
+extern xbt_swag_t context_to_destroy;\r
+\r
+\r
+/* All factories init */\r
+typedef struct s_xbt_context_factory* xbt_context_factory_t;\r
 \r
-#ifdef CONTEXT_THREADS\r
-#include "xbt_thread_context.h"        /* thread based context declarations            */\r
-#elif !defined(WIN32)\r
-#include "xbt_ucontext.h"              /* ucontext based context declarations          */\r
-#else\r
-#error ERROR [__FILE__, line __LINE__]: no context based implementation specified.\r
-#endif\r
+int xbt_thread_context_factory_init(xbt_context_factory_t* factory);\r
+int xbt_ucontext_factory_init(xbt_context_factory_t* factory);\r
+int xbt_jcontext_factory_init(xbt_context_factory_t* factory);\r
 \r
-#include "xbt_jcontext.h"              /* java thread based context declarations       */      \r
+\r
+SG_END_DECL()\r
 \r
 #endif /* !_XBT_CONTEXT_PRIVATE_H */\r
index b6e92d7..131c2c3 100644 (file)
@@ -2,18 +2,11 @@
 \r
 #include "xbt/function_types.h"\r
 #include "xbt/ex_interface.h"\r
+#include "xbt/xbt_context_factory.h"\r
+#include "xbt/xbt_jcontext.h"\r
 \r
 XBT_LOG_NEW_DEFAULT_CATEGORY(jmsg,"MSG for Java(TM)");\r
 \r
-#include "java/jmsg.c"\r
-#include "java/jmsg_channel.c"\r
-#include "java/jmsg_host.c"\r
-#include "java/jmsg_parallel_task.c"\r
-#include "java/jmsg_task.c"\r
-#include "java/jxbt_utilities.c"\r
-#include "java/jmsg_process.c"\r
-\r
-\r
 /* callback: context fetching */\r
 static ex_ctx_t*\r
 xbt_jcontext_ex_ctx(void);\r
index f3c1042..a817ec2 100644 (file)
@@ -1,21 +1,15 @@
 #ifndef _XBT_JCONTEXT_H\r
 #define _XBT_JCONTEXT_H\r
 \r
-#include <jni.h>                                       /* use java native interface to bind the msg structures to the java instances                           */      \r
 #include "portable.h"\r
 #include "xbt/misc.h"\r
 \r
-#ifndef _XBT_CONTEXT_PRIVATE_H\r
-#include "xbt_context_private.h"\r
-#endif /* _XBT_CONTEXT_PRIVATE_H */\r
+#include "xbt/xbt_context_private.h"\r
+#include "java/jmsg.h"\r
+#include "java/jmsg_process.h"\r
 \r
 SG_BEGIN_DECL()\r
 \r
-#ifndef _XBT_CONTEXT_FACTORY_T_DEFINED\r
-typedef struct s_xbt_context_factory* xbt_context_factory_t;\r
-#define _XBT_CONTEXT_FACTORY_T_DEFINED\r
-#endif /* !_XBT_CONTEXT_FACTORY_T_DEFINED */\r
-\r
 typedef struct s_xbt_jcontext\r
 {\r
        XBT_CTX_BASE_T;\r
@@ -23,13 +17,6 @@ typedef struct s_xbt_jcontext
        JNIEnv* jenv;                                   /* jni interface pointer associated to this thread                                                                                      */\r
 }s_xbt_jcontext_t,* xbt_jcontext_t;\r
 \r
-int\r
-xbt_jcontext_factory_init(xbt_context_factory_t* factory);\r
-\r
-\r
 SG_END_DECL()\r
 \r
-\r
-\r
-\r
 #endif /* !_XBT_JCONTEXT_H */\r
index fb8307b..891a6dd 100644 (file)
@@ -1,5 +1,7 @@
 \r
 #include "xbt/function_types.h"\r
+#include "xbt/xbt_context_factory.h"\r
+#include "xbt/xbt_thread_context.h"\r
 \r
 static xbt_context_t \r
 xbt_thread_context_factory_create_context(const char* name, xbt_main_func_t code, void_f_pvoid_t startup_func, void* startup_arg, void_f_pvoid_t cleanup_func, void* cleanup_arg, int argc, char** argv);\r
index fa08f17..49ab594 100644 (file)
@@ -5,18 +5,8 @@
 #include "xbt/xbt_os_thread.h"         /* declaration of the xbt native semaphore and native thread                                                            */\r
 #include "xbt/swag.h"\r
 \r
-\r
-#ifndef _XBT_CONTEXT_PRIVATE_H\r
-/*#include "xbt_context_private.h"*/\r
-#endif /* _XBT_CONTEXT_PRIVATE_H */\r
-\r
 SG_BEGIN_DECL()\r
 \r
-#ifndef _XBT_CONTEXT_FACTORY_T_DEFINED\r
-typedef struct s_xbt_context_factory* xbt_context_factory_t;\r
-#define _XBT_CONTEXT_FACTORY_T_DEFINED\r
-#endif /* !_XBT_CONTEXT_FACTORY_T_DEFINED */\r
-\r
 \r
 typedef struct s_xbt_thread_context\r
 {\r
@@ -26,9 +16,6 @@ typedef struct s_xbt_thread_context
        xbt_os_sem_t end;                               /* this semaphore is used to schedule/unschedule the process                                                            */\r
 }s_xbt_thread_context_t,* xbt_thread_context_t;\r
 \r
-int\r
-xbt_thread_context_factory_init(xbt_context_factory_t* factory);\r
-\r
 SG_END_DECL()\r
 \r
 #endif /* !_XBT_THREAD_CONTEXT_H */\r
index b2ce72f..dac3ab0 100644 (file)
@@ -5,11 +5,6 @@
 #include <ucontext.h>                  /* context relative declarations                                                                                                                        */                              \r
 #define STACK_SIZE 128*1024            /* lower this if you want to reduce the memory consumption                                                                      */\r
 \r
-#ifndef _XBT_CONTEXT_FACTORY_T_DEFINED\r
-typedef struct s_xbt_context_factory* xbt_context_factory_t;\r
-#define _XBT_CONTEXT_FACTORY_T_DEFINED\r
-#endif /* !_XBT_CONTEXT_FACTORY_T_DEFINED */\r
-\r
 typedef struct s_xbt_ucontext\r
 {\r
        XBT_CTX_BASE_T;\r
@@ -19,9 +14,6 @@ typedef struct s_xbt_ucontext
 }s_xbt_ucontext_t,* xbt_ucontext_t;\r
 \r
 \r
-int\r
-xbt_ucontext_factory_init(xbt_context_factory_t* factory);\r
-\r
 SG_END_DECL()\r
 \r
 #endif /* !_XBT_UCONTEXT_H */\r