Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
simgrid.git
17 years agoKill a deadlock in the new thread creation code I've introduced (sometimes, the main...
mquinson [Fri, 16 Mar 2007 14:08:48 +0000 (14:08 +0000)]
Kill a deadlock in the new thread creation code I've introduced (sometimes, the main thread had the ability to acquire the individual lock of the created one before the poor dude got a chance to go in jail)

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3300 48e7efb5-ca39-0410-a469-dd3cf9ba447f

17 years agothis file is used by the example ping_pong
cherierm [Fri, 16 Mar 2007 13:42:49 +0000 (13:42 +0000)]
this file is used by the example ping_pong

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3299 48e7efb5-ca39-0410-a469-dd3cf9ba447f

17 years agofor windows xbt_thread implementation a thread yield after it has signaled a condition
cherierm [Fri, 16 Mar 2007 13:36:31 +0000 (13:36 +0000)]
for windows xbt_thread implementation a thread yield after it has signaled a condition

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3298 48e7efb5-ca39-0410-a469-dd3cf9ba447f

17 years agoMicrosoft visual c++ need that
cherierm [Fri, 16 Mar 2007 13:33:36 +0000 (13:33 +0000)]
Microsoft visual c++ need that

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3297 48e7efb5-ca39-0410-a469-dd3cf9ba447f

17 years agoforce bye alignement to 8 and disable a avertissment
cherierm [Fri, 16 Mar 2007 13:30:01 +0000 (13:30 +0000)]
force bye alignement to 8 and disable a avertissment

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3296 48e7efb5-ca39-0410-a469-dd3cf9ba447f

17 years agooptimize the comparaison between characters
cherierm [Fri, 16 Mar 2007 13:28:47 +0000 (13:28 +0000)]
optimize the comparaison between characters

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3295 48e7efb5-ca39-0410-a469-dd3cf9ba447f

17 years agoon include extern C directive for c++ compilers plus include misc.h header
cherierm [Fri, 16 Mar 2007 13:27:21 +0000 (13:27 +0000)]
on include extern C directive for c++ compilers plus include misc.h header

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3294 48e7efb5-ca39-0410-a469-dd3cf9ba447f

17 years agossize_t is not defined in borland builder and visual C++ and now asprintf and
cherierm [Fri, 16 Mar 2007 13:23:31 +0000 (13:23 +0000)]
ssize_t is not defined in borland builder and visual C++ and now asprintf and
vasprintf are not exported in the windows dll

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3293 48e7efb5-ca39-0410-a469-dd3cf9ba447f

17 years agoonly indent code
cherierm [Fri, 16 Mar 2007 13:18:55 +0000 (13:18 +0000)]
only indent code

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3292 48e7efb5-ca39-0410-a469-dd3cf9ba447f

17 years agoPlug a memleak
mquinson [Fri, 16 Mar 2007 10:54:33 +0000 (10:54 +0000)]
Plug a memleak

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3291 48e7efb5-ca39-0410-a469-dd3cf9ba447f

17 years agoLet the stubs die more verbosely when they catch a logic error in our programmation
mquinson [Fri, 16 Mar 2007 10:48:16 +0000 (10:48 +0000)]
Let the stubs die more verbosely when they catch a logic error in our programmation

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3290 48e7efb5-ca39-0410-a469-dd3cf9ba447f

17 years agoDamn picky compiler. Kill unused vars when using ucontextes
mquinson [Fri, 16 Mar 2007 10:44:38 +0000 (10:44 +0000)]
Damn picky compiler. Kill unused vars when using ucontextes

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3289 48e7efb5-ca39-0410-a469-dd3cf9ba447f

17 years agoOnly initialize the mutex&condition used for context creation when using the pthreads...
mquinson [Fri, 16 Mar 2007 10:42:58 +0000 (10:42 +0000)]
Only initialize the mutex&condition used for context creation when using the pthreads to implement the xbt_contextes

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3288 48e7efb5-ca39-0410-a469-dd3cf9ba447f

17 years agouse two conditions during the thread creation phase to make sure that it is *really...
mquinson [Fri, 16 Mar 2007 10:34:50 +0000 (10:34 +0000)]
use two conditions during the thread creation phase to make sure that it is *really* impossible to signal the condition and get our own signal the line after. The pthread lib under linux works just fine on such a borderline case, but it may not be the case of any thread implementation. Namly, our xbt_thread implem for windows is not that permissive. It could be possible to make our implem more robust, but it is ways easier to make our user code less demanding

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3287 48e7efb5-ca39-0410-a469-dd3cf9ba447f

17 years agoAlso avoid to leak the stub under windows
mquinson [Fri, 16 Mar 2007 10:19:05 +0000 (10:19 +0000)]
Also avoid to leak the stub under windows

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3286 48e7efb5-ca39-0410-a469-dd3cf9ba447f

17 years agoKill the s_xbt_thread_wrapper_for_restart__ structure and use xbt_thread_t to contain...
mquinson [Fri, 16 Mar 2007 10:13:26 +0000 (10:13 +0000)]
Kill the s_xbt_thread_wrapper_for_restart__ structure and use xbt_thread_t to contain what the former contained so that we don't have to free the stub, or leak if we don't

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3285 48e7efb5-ca39-0410-a469-dd3cf9ba447f

17 years agoTypo in my last change aiming at including SIMIX in the tarball regardless on whether...
mquinson [Thu, 15 Mar 2007 16:43:14 +0000 (16:43 +0000)]
Typo in my last change aiming at including SIMIX in the tarball regardless on whether we configured simgrid to use it or not

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3284 48e7efb5-ca39-0410-a469-dd3cf9ba447f

17 years agoCommit generated file
mquinson [Thu, 15 Mar 2007 16:39:42 +0000 (16:39 +0000)]
Commit generated file

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3283 48e7efb5-ca39-0410-a469-dd3cf9ba447f

17 years agoKill oldies
mquinson [Thu, 15 Mar 2007 16:39:06 +0000 (16:39 +0000)]
Kill oldies

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3282 48e7efb5-ca39-0410-a469-dd3cf9ba447f

17 years agoKill old context implementations on windows. We now use xbt_threads for this on this...
mquinson [Thu, 15 Mar 2007 16:38:36 +0000 (16:38 +0000)]
Kill old context implementations on windows. We now use xbt_threads for this on this platform; Make sure the test units are rebuilt correctly even during VPATH builds

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3281 48e7efb5-ca39-0410-a469-dd3cf9ba447f

17 years agoKill old context implementations on windows. We now use xbt_threads for this on this...
mquinson [Thu, 15 Mar 2007 16:37:20 +0000 (16:37 +0000)]
Kill old context implementations on windows. We now use xbt_threads for this on this platform

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3280 48e7efb5-ca39-0410-a469-dd3cf9ba447f

17 years agoMove xbt/xbt_thread.h to private interfaces since it's not always provided by the...
mquinson [Thu, 15 Mar 2007 08:21:11 +0000 (08:21 +0000)]
Move xbt/xbt_thread.h to private interfaces since it's not always provided by the libraries

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3279 48e7efb5-ca39-0410-a469-dd3cf9ba447f

17 years agoAdd a [correct] prototype to xbt_thread_join
mquinson [Thu, 15 Mar 2007 08:20:17 +0000 (08:20 +0000)]
Add a [correct] prototype to xbt_thread_join

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3278 48e7efb5-ca39-0410-a469-dd3cf9ba447f

17 years agoThis is definitivly not a public interface: it is not provided in libsimgrid when...
mquinson [Thu, 15 Mar 2007 08:08:16 +0000 (08:08 +0000)]
This is definitivly not a public interface: it is not provided in libsimgrid when using the ucontextes to implement xbt_context

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3277 48e7efb5-ca39-0410-a469-dd3cf9ba447f

17 years agoeffect of the redefinition of the macro XBT_PUBLIC_DATA
cherierm [Wed, 14 Mar 2007 21:28:13 +0000 (21:28 +0000)]
effect of the redefinition of the macro XBT_PUBLIC_DATA

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3276 48e7efb5-ca39-0410-a469-dd3cf9ba447f

17 years agoxbt_thread_join() function implementation, windows thread version modifications
cherierm [Wed, 14 Mar 2007 21:27:17 +0000 (21:27 +0000)]
xbt_thread_join() function implementation, windows thread version modifications

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3275 48e7efb5-ca39-0410-a469-dd3cf9ba447f

17 years agoxbt_thread_join() function is now implemented
cherierm [Wed, 14 Mar 2007 21:25:34 +0000 (21:25 +0000)]
xbt_thread_join() function is now implemented

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3274 48e7efb5-ca39-0410-a469-dd3cf9ba447f

17 years agoeffect of redefinition of the macro XBT_PUBLIC_DATA
cherierm [Wed, 14 Mar 2007 21:24:35 +0000 (21:24 +0000)]
effect of redefinition of the macro XBT_PUBLIC_DATA

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3273 48e7efb5-ca39-0410-a469-dd3cf9ba447f

17 years agoredefinition of the macro XBT_PUBLIC_DATA
cherierm [Wed, 14 Mar 2007 21:21:25 +0000 (21:21 +0000)]
redefinition of the macro XBT_PUBLIC_DATA

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3272 48e7efb5-ca39-0410-a469-dd3cf9ba447f

17 years agoAdding debug informations.
alegrand [Wed, 14 Mar 2007 15:19:29 +0000 (15:19 +0000)]
Adding debug informations.
Adding a "clean" suicide mechanisme for the xbt_context_kill functions.

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3271 48e7efb5-ca39-0410-a469-dd3cf9ba447f

17 years agoFixing the setkey getkey mechanism (it wasn't functionnal at all).
alegrand [Wed, 14 Mar 2007 15:15:21 +0000 (15:15 +0000)]
Fixing the setkey getkey mechanism (it wasn't functionnal at all).

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3270 48e7efb5-ca39-0410-a469-dd3cf9ba447f

17 years agoTrickier example.
alegrand [Wed, 14 Mar 2007 15:14:29 +0000 (15:14 +0000)]
Trickier example.

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3269 48e7efb5-ca39-0410-a469-dd3cf9ba447f

17 years agoMake sure that SIMIX is in the distributed tarballs
mquinson [Wed, 14 Mar 2007 11:01:41 +0000 (11:01 +0000)]
Make sure that SIMIX is in the distributed tarballs

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3268 48e7efb5-ca39-0410-a469-dd3cf9ba447f

17 years agoThis is already exported from the corresponding header (include/xbt/ex.h), as it...
mquinson [Wed, 14 Mar 2007 09:22:31 +0000 (09:22 +0000)]
This is already exported from the corresponding header (include/xbt/ex.h), as it should be

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3267 48e7efb5-ca39-0410-a469-dd3cf9ba447f

17 years agoUse XBT_PUBLIC_DATA instead of XBT_DECLARE_DATA
mquinson [Wed, 14 Mar 2007 09:21:45 +0000 (09:21 +0000)]
Use XBT_PUBLIC_DATA instead of XBT_DECLARE_DATA

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3266 48e7efb5-ca39-0410-a469-dd3cf9ba447f

17 years agoThis is already exported from the corresponding .h (./src/include/surf/surf.h)
mquinson [Wed, 14 Mar 2007 09:18:58 +0000 (09:18 +0000)]
This is already exported from the corresponding .h (./src/include/surf/surf.h)

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3265 48e7efb5-ca39-0410-a469-dd3cf9ba447f

17 years agoUse XBT_PUBLIC_DATA instead of XBT_DECLARE_DATA
mquinson [Wed, 14 Mar 2007 09:13:25 +0000 (09:13 +0000)]
Use XBT_PUBLIC_DATA instead of XBT_DECLARE_DATA

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3264 48e7efb5-ca39-0410-a469-dd3cf9ba447f

17 years agoRename XBT_DECLARE_DATA to XBT_PUBLIC_DATA for sake of consistency, and rewrite its...
mquinson [Wed, 14 Mar 2007 09:11:43 +0000 (09:11 +0000)]
Rename XBT_DECLARE_DATA to XBT_PUBLIC_DATA for sake of consistency, and rewrite its usage to be consistant with XBT_PUBLIC

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3263 48e7efb5-ca39-0410-a469-dd3cf9ba447f

17 years agoportable.h is the header to load when seeking for portability
mquinson [Wed, 14 Mar 2007 09:05:51 +0000 (09:05 +0000)]
portable.h is the header to load when seeking for portability

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3262 48e7efb5-ca39-0410-a469-dd3cf9ba447f

17 years agouse win32/config.h on windows
cherierm [Tue, 13 Mar 2007 14:07:10 +0000 (14:07 +0000)]
use win32/config.h on windows

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3261 48e7efb5-ca39-0410-a469-dd3cf9ba447f

17 years agoexport some functions for windows dll
cherierm [Tue, 13 Mar 2007 13:53:37 +0000 (13:53 +0000)]
export some functions for windows dll

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3260 48e7efb5-ca39-0410-a469-dd3cf9ba447f

17 years agoexport some functions for libgras
cherierm [Tue, 13 Mar 2007 13:49:13 +0000 (13:49 +0000)]
export some functions for libgras

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3259 48e7efb5-ca39-0410-a469-dd3cf9ba447f

17 years agodefine CONTEXT_THREADS to 1
cherierm [Tue, 13 Mar 2007 13:24:40 +0000 (13:24 +0000)]
define CONTEXT_THREADS to 1

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3258 48e7efb5-ca39-0410-a469-dd3cf9ba447f

17 years agoconsider the new macros CONTEXT_UCONTEXT and CONTEXT_THREADS
cherierm [Tue, 13 Mar 2007 13:20:37 +0000 (13:20 +0000)]
consider the new macros CONTEXT_UCONTEXT and CONTEXT_THREADS

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3257 48e7efb5-ca39-0410-a469-dd3cf9ba447f

17 years agovisual c++ need snprintf and vsnprintf functions
cherierm [Tue, 13 Mar 2007 13:19:43 +0000 (13:19 +0000)]
visual c++ need snprintf and vsnprintf functions

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3256 48e7efb5-ca39-0410-a469-dd3cf9ba447f

17 years agospecial exportation data for visual c++
cherierm [Tue, 13 Mar 2007 12:35:12 +0000 (12:35 +0000)]
special exportation data for visual c++

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3255 48e7efb5-ca39-0410-a469-dd3cf9ba447f

17 years agonot need to export XBT_LOG_ROOT_CAT in log.c
cherierm [Tue, 13 Mar 2007 12:20:31 +0000 (12:20 +0000)]
not need to export XBT_LOG_ROOT_CAT in log.c

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3254 48e7efb5-ca39-0410-a469-dd3cf9ba447f

17 years agospecial data exportation
cherierm [Tue, 13 Mar 2007 12:12:56 +0000 (12:12 +0000)]
special data exportation

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3253 48e7efb5-ca39-0410-a469-dd3cf9ba447f

17 years agoexports functions in windows dll
cherierm [Tue, 13 Mar 2007 12:10:35 +0000 (12:10 +0000)]
exports functions in windows dll

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3252 48e7efb5-ca39-0410-a469-dd3cf9ba447f

17 years agospecial data exportation for Visual C++
cherierm [Tue, 13 Mar 2007 12:08:51 +0000 (12:08 +0000)]
special data exportation for Visual C++

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3251 48e7efb5-ca39-0410-a469-dd3cf9ba447f

17 years agoa new macro XBT_DECLARE_DATA for special data exportation
cherierm [Tue, 13 Mar 2007 12:05:09 +0000 (12:05 +0000)]
a new macro XBT_DECLARE_DATA for special data exportation

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3250 48e7efb5-ca39-0410-a469-dd3cf9ba447f

17 years agoexport some functions in windows dll
cherierm [Tue, 13 Mar 2007 12:02:34 +0000 (12:02 +0000)]
export some functions in windows dll

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3249 48e7efb5-ca39-0410-a469-dd3cf9ba447f

17 years agoThis is a public symbol, isn't it (not realy sure, but should be harmless)
mquinson [Tue, 13 Mar 2007 11:22:00 +0000 (11:22 +0000)]
This is a public symbol, isn't it (not realy sure, but should be harmless)

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3248 48e7efb5-ca39-0410-a469-dd3cf9ba447f

17 years agoCast to the proper pointer type to avoid some warnings
cherierm [Tue, 13 Mar 2007 11:08:21 +0000 (11:08 +0000)]
Cast to the proper pointer type to avoid some warnings

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3247 48e7efb5-ca39-0410-a469-dd3cf9ba447f

17 years agoReintroduce the changes to the windows build chain to allow gcc cross compilation...
mquinson [Tue, 13 Mar 2007 10:22:44 +0000 (10:22 +0000)]
Reintroduce the changes to the windows build chain to allow gcc cross compilation (was removed by Malek's last compile)

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3246 48e7efb5-ca39-0410-a469-dd3cf9ba447f

17 years agoVisual C++ compiler configuration file
cherierm [Tue, 13 Mar 2007 10:18:39 +0000 (10:18 +0000)]
Visual C++ compiler configuration file

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3245 48e7efb5-ca39-0410-a469-dd3cf9ba447f

17 years agospecial configuration for Visual C++ compiler
cherierm [Tue, 13 Mar 2007 10:16:16 +0000 (10:16 +0000)]
special configuration for Visual C++ compiler

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3244 48e7efb5-ca39-0410-a469-dd3cf9ba447f

17 years agospecial configuration for Visual C++ compiler
cherierm [Tue, 13 Mar 2007 10:10:20 +0000 (10:10 +0000)]
special configuration for Visual C++ compiler

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3243 48e7efb5-ca39-0410-a469-dd3cf9ba447f

17 years agoMake sure libsimgrid depend on libpthreads only when needed (ie, when we use pthreads...
mquinson [Mon, 12 Mar 2007 15:03:42 +0000 (15:03 +0000)]
Make sure libsimgrid depend on libpthreads only when needed (ie, when we use pthreads to implement xbt_contextes); libgras depends on it anyway since it will soon be multithreaded

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3242 48e7efb5-ca39-0410-a469-dd3cf9ba447f

17 years agoproper file name for the stubs not used in either SG or RL
mquinson [Mon, 12 Mar 2007 15:00:09 +0000 (15:00 +0000)]
proper file name for the stubs not used in either SG or RL

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3241 48e7efb5-ca39-0410-a469-dd3cf9ba447f

17 years agoKeeping up with last renaming.
alegrand [Mon, 12 Mar 2007 11:20:58 +0000 (11:20 +0000)]
Keeping up with last renaming.

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3240 48e7efb5-ca39-0410-a469-dd3cf9ba447f

17 years agoUsing more explicit names.
alegrand [Mon, 12 Mar 2007 11:20:45 +0000 (11:20 +0000)]
Using more explicit names.
Killing the init_context in last position.
Adding debug.
Calling cleanup_func before freeing args.

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3239 48e7efb5-ca39-0410-a469-dd3cf9ba447f

17 years agoVarious cleanups.
alegrand [Mon, 12 Mar 2007 11:19:12 +0000 (11:19 +0000)]
Various cleanups.

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3238 48e7efb5-ca39-0410-a469-dd3cf9ba447f

17 years agoAdd --with-pthreads as synonym for --with-pthread since Arnaud cannot type correctly
mquinson [Mon, 12 Mar 2007 09:28:49 +0000 (09:28 +0000)]
Add --with-pthreads as synonym for --with-pthread since Arnaud cannot type correctly

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3237 48e7efb5-ca39-0410-a469-dd3cf9ba447f

17 years agodo not use xbt_context_init but xbt_init; do not try to yield when there is only...
mquinson [Fri, 9 Mar 2007 17:01:22 +0000 (17:01 +0000)]
do not use xbt_context_init but xbt_init; do not try to yield when there is only one context since it fails for whatever reason

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3236 48e7efb5-ca39-0410-a469-dd3cf9ba447f

17 years agosync generated files
mquinson [Fri, 9 Mar 2007 16:55:23 +0000 (16:55 +0000)]
sync generated files

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3235 48e7efb5-ca39-0410-a469-dd3cf9ba447f

17 years agoBorland uses the thread implementation of the contextes
mquinson [Fri, 9 Mar 2007 16:51:39 +0000 (16:51 +0000)]
Borland uses the thread implementation of the contextes

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3234 48e7efb5-ca39-0410-a469-dd3cf9ba447f

17 years agouse the empty functions for context module init/exit when in GRAS_RL
mquinson [Fri, 9 Mar 2007 16:50:58 +0000 (16:50 +0000)]
use the empty functions for context module init/exit when in GRAS_RL

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3233 48e7efb5-ca39-0410-a469-dd3cf9ba447f

17 years agodon't use either pthread or winthread to implement xbt_context, but use our compatibi...
mquinson [Fri, 9 Mar 2007 16:49:28 +0000 (16:49 +0000)]
don't use either pthread or winthread to implement xbt_context, but use our compatibility layer xbt_thread instead (when ucontext are not available, of course)

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3232 48e7efb5-ca39-0410-a469-dd3cf9ba447f

17 years agoMake the implementation more robust: don't die if something to destroy is already...
mquinson [Fri, 9 Mar 2007 16:47:06 +0000 (16:47 +0000)]
Make the implementation more robust: don't die if something to destroy is already NULL, ignore instead; don't try to delete our pthread_key on shutdown. Valgrind detects no leak if we don't, and whine if we try to

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3231 48e7efb5-ca39-0410-a469-dd3cf9ba447f

17 years agoDon't initialize the contextes manually, it will be done by xbt_init on need
mquinson [Fri, 9 Mar 2007 16:45:47 +0000 (16:45 +0000)]
Don't initialize the contextes manually, it will be done by xbt_init on need

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3230 48e7efb5-ca39-0410-a469-dd3cf9ba447f

17 years agoEmpty body of the context module init/exit functions since they are not defined elsew...
mquinson [Fri, 9 Mar 2007 16:44:08 +0000 (16:44 +0000)]
Empty body of the context module init/exit functions since they are not defined elsewhere (and not used) in RL

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3229 48e7efb5-ca39-0410-a469-dd3cf9ba447f

17 years agoIntegrate xbt_context_init/exit to the regular module mecanism; free the xbt_binary_n...
mquinson [Fri, 9 Mar 2007 16:42:39 +0000 (16:42 +0000)]
Integrate xbt_context_init/exit to the regular module mecanism; free the xbt_binary_name as late as possible since it can be used by module exit functions (if they do log)

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3228 48e7efb5-ca39-0410-a469-dd3cf9ba447f

17 years agoMove xbt_context_init/exit to modinter so that we can integrate it to the regular...
mquinson [Fri, 9 Mar 2007 16:41:26 +0000 (16:41 +0000)]
Move xbt_context_init/exit to modinter so that we can integrate it to the regular module mecanism

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3227 48e7efb5-ca39-0410-a469-dd3cf9ba447f

17 years agoLoad the getline prototype when it exists
mquinson [Fri, 9 Mar 2007 16:40:16 +0000 (16:40 +0000)]
Load the getline prototype when it exists

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3226 48e7efb5-ca39-0410-a469-dd3cf9ba447f

17 years agoLoad the result of configure on cross-compilation
mquinson [Fri, 9 Mar 2007 16:39:29 +0000 (16:39 +0000)]
Load the result of configure on cross-compilation

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3225 48e7efb5-ca39-0410-a469-dd3cf9ba447f

17 years agoModified some functions and datatypes. Simix API changed too.
donassbr [Fri, 9 Mar 2007 14:29:13 +0000 (14:29 +0000)]
Modified some functions and datatypes. Simix API changed too.

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3224 48e7efb5-ca39-0410-a469-dd3cf9ba447f

17 years agoCommit the autogenerated files
mquinson [Thu, 8 Mar 2007 23:39:02 +0000 (23:39 +0000)]
Commit the autogenerated files

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3223 48e7efb5-ca39-0410-a469-dd3cf9ba447f

17 years agobump version number
mquinson [Thu, 8 Mar 2007 23:24:26 +0000 (23:24 +0000)]
bump version number

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3222 48e7efb5-ca39-0410-a469-dd3cf9ba447f

17 years agoAnd now the 'compiles under linux' version
mquinson [Thu, 8 Mar 2007 23:03:18 +0000 (23:03 +0000)]
And now the 'compiles under linux' version

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3221 48e7efb5-ca39-0410-a469-dd3cf9ba447f

17 years agoimprove hte windows part, still to be tested for real
mquinson [Thu, 8 Mar 2007 22:58:01 +0000 (22:58 +0000)]
improve hte windows part, still to be tested for real

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3220 48e7efb5-ca39-0410-a469-dd3cf9ba447f

17 years agoheader of the getline replacement; documentation of xbt_abort and xbt_die since they...
mquinson [Thu, 8 Mar 2007 22:54:19 +0000 (22:54 +0000)]
header of the getline replacement; documentation of xbt_abort and xbt_die since they landed in this file

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3219 48e7efb5-ca39-0410-a469-dd3cf9ba447f

17 years agoremplacement implementation of the GNU only getline
mquinson [Thu, 8 Mar 2007 22:51:28 +0000 (22:51 +0000)]
remplacement implementation of the GNU only getline

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3218 48e7efb5-ca39-0410-a469-dd3cf9ba447f

17 years agoCheck for getline() to provide a replacement when not there
mquinson [Thu, 8 Mar 2007 22:44:10 +0000 (22:44 +0000)]
Check for getline() to provide a replacement when not there

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3217 48e7efb5-ca39-0410-a469-dd3cf9ba447f

17 years agolibraries now unconditionnally depend on the pthread lib because of the xbt_thread...
mquinson [Thu, 8 Mar 2007 22:20:12 +0000 (22:20 +0000)]
libraries now unconditionnally depend on the pthread lib because of the xbt_thread module, define DLL_EXPORT when cross-compiling for billware

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3216 48e7efb5-ca39-0410-a469-dd3cf9ba447f

17 years agoadd a newline at the end of the file to make gcc happy
mquinson [Thu, 8 Mar 2007 21:55:31 +0000 (21:55 +0000)]
add a newline at the end of the file to make gcc happy

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3215 48e7efb5-ca39-0410-a469-dd3cf9ba447f

17 years agoAllow to cross-compile with gcc again
mquinson [Thu, 8 Mar 2007 21:54:44 +0000 (21:54 +0000)]
Allow to cross-compile with gcc again

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3214 48e7efb5-ca39-0410-a469-dd3cf9ba447f

17 years agoadd some thread functions
cherierm [Thu, 8 Mar 2007 20:23:04 +0000 (20:23 +0000)]
add some thread functions

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3213 48e7efb5-ca39-0410-a469-dd3cf9ba447f

17 years agoCut a multiple definition of a macro for users using damn pedantic warning flags
mquinson [Thu, 8 Mar 2007 16:30:27 +0000 (16:30 +0000)]
Cut a multiple definition of a macro for users using damn pedantic warning flags

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3212 48e7efb5-ca39-0410-a469-dd3cf9ba447f

17 years agoMake room for the new xbt_thread module
mquinson [Thu, 8 Mar 2007 16:19:54 +0000 (16:19 +0000)]
Make room for the new xbt_thread module

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3211 48e7efb5-ca39-0410-a469-dd3cf9ba447f

17 years agoPortability layer over the pthreads working with pthread or on windows
mquinson [Thu, 8 Mar 2007 16:17:40 +0000 (16:17 +0000)]
Portability layer over the pthreads working with pthread or on windows

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3210 48e7efb5-ca39-0410-a469-dd3cf9ba447f

17 years agowint_hread update
cherierm [Thu, 8 Mar 2007 15:20:29 +0000 (15:20 +0000)]
wint_hread update

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3209 48e7efb5-ca39-0410-a469-dd3cf9ba447f

17 years agominor cleanups
mquinson [Thu, 8 Mar 2007 10:00:49 +0000 (10:00 +0000)]
minor cleanups

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3208 48e7efb5-ca39-0410-a469-dd3cf9ba447f

17 years agoGRAS API BREAKAGE: allow users to never call gras_msgtype_by_name() explicitly, expec...
mquinson [Wed, 7 Mar 2007 15:40:30 +0000 (15:40 +0000)]
GRAS API BREAKAGE: allow users to never call gras_msgtype_by_name() explicitly, expect the callbacks to return 0 when everything went well

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3207 48e7efb5-ca39-0410-a469-dd3cf9ba447f

17 years agoadapt to lastest changes in GRAS API
mquinson [Wed, 7 Mar 2007 15:38:12 +0000 (15:38 +0000)]
adapt to lastest changes in GRAS API

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3206 48e7efb5-ca39-0410-a469-dd3cf9ba447f

17 years agoUpdate the changes to reflect my last changes
mquinson [Wed, 7 Mar 2007 15:31:04 +0000 (15:31 +0000)]
Update the changes to reflect my last changes

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3205 48e7efb5-ca39-0410-a469-dd3cf9ba447f

17 years agoupdate the mmrpc example to adapt to the changes in the matrix module (which is still...
mquinson [Wed, 7 Mar 2007 14:56:20 +0000 (14:56 +0000)]
update the mmrpc example to adapt to the changes in the matrix module (which is still to be documented)

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3204 48e7efb5-ca39-0410-a469-dd3cf9ba447f

17 years agoSome tests done and bugs corrected.
donassbr [Wed, 7 Mar 2007 13:38:57 +0000 (13:38 +0000)]
Some tests done and bugs corrected.
Removed SIMIX_error_t.
Added new privates variables in the header ( action and process ).

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3203 48e7efb5-ca39-0410-a469-dd3cf9ba447f

17 years agoFirst wave of GRAS API breaking: gras_cb_register wants a message name (char*) as...
mquinson [Wed, 7 Mar 2007 11:03:04 +0000 (11:03 +0000)]
First wave of GRAS API breaking: gras_cb_register wants a message name (char*) as first argument and call gras_msgtype_by_name for you. gras_cb_register_() is the old behavior; same changes to gras_cb_unregister(). To come: the same for msg_send/msg_wait and so on.

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3202 48e7efb5-ca39-0410-a469-dd3cf9ba447f

17 years agoNew question: What is the difference between MSG, SimDag, and GRAS? Do they serve...
mquinson [Wed, 7 Mar 2007 10:16:38 +0000 (10:16 +0000)]
New question: What is the difference between MSG, SimDag, and GRAS? Do they serve the same purpose?

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3201 48e7efb5-ca39-0410-a469-dd3cf9ba447f