mquinson [Sat, 27 Oct 2007 09:44:36 +0000 (09:44 +0000)]
Better Java philosophy: create a new type of tasks to mean terminaison instead of relying of some magic value of the classical computation task (plus reduce the verbosity of the slaves)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4903
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
mquinson [Sat, 27 Oct 2007 09:21:27 +0000 (09:21 +0000)]
Reset the clock to 0 in surf_exit so that it gets zeroed in MSG_clean for people wanting to rerun simullations in the same setting (hello Pablo)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4902
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
mquinson [Sat, 27 Oct 2007 09:12:22 +0000 (09:12 +0000)]
Reduce drastically the size of the test since it causes timeouts on slow build daemons
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4901
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
mquinson [Sat, 27 Oct 2007 09:09:46 +0000 (09:09 +0000)]
Last useless cleanup about Marc jumbo commit
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4900
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
mquinson [Sat, 27 Oct 2007 09:07:26 +0000 (09:07 +0000)]
Factorize the current_property_set symbol of simix (for process properties) and surf (for host and link properties); mark it 'extern' in include/surf/surf.h, and declare it strongly (ie, initialize it) in surf/surfxml_parse.c so that the poor macosx linker don't get fooled
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4899
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
mquinson [Sat, 27 Oct 2007 08:36:33 +0000 (08:36 +0000)]
Kill code duplication, and doc tiny improvements
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4898
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
mquinson [Sat, 27 Oct 2007 08:24:36 +0000 (08:24 +0000)]
Kill the useless _MSG_process_create_with_env_from_SIMIX(). _MSG_process_create_from_SIMIX() is part of the private API of MSG (I mean internal to the lib), so it can be changed without pissing of users
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4897
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
mquinson [Sat, 27 Oct 2007 08:17:22 +0000 (08:17 +0000)]
Lastest cleanups in surf/ of Marc's jumbo commit
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4896
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
mquinson [Sat, 27 Oct 2007 07:34:39 +0000 (07:34 +0000)]
I think I now better understand the surf internals: each resource can be *either* a cpu or a link, so we can merge all the get_??_properties into only one method. No object will need both of them. This could be further improved by moving this to a function in surf directly instead of leaving this in models, but it would be the first attribute being handled that way, so I prefer keeping the pseudo object philosophy in place in surf
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4895
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
mquinson [Fri, 26 Oct 2007 21:17:37 +0000 (21:17 +0000)]
useless cleanups
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4894
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
mquinson [Fri, 26 Oct 2007 21:16:52 +0000 (21:16 +0000)]
Yeah, that was a bit agressive against leaks...
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4893
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
mquinson [Fri, 26 Oct 2007 21:08:05 +0000 (21:08 +0000)]
Ooops, this is a graphxml file, not a surfxml one. It shouldn't be updated... (revert)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4892
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
mquinson [Fri, 26 Oct 2007 20:42:22 +0000 (20:42 +0000)]
Fixup the is_first semantic (does not change anything, but you're first the first time, not afterward)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4891
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
mquinson [Fri, 26 Oct 2007 20:38:57 +0000 (20:38 +0000)]
Propagate the s/network_link/link/ from the XML to the C code (hope I didn't break anything)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4890
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
mquinson [Fri, 26 Oct 2007 19:51:25 +0000 (19:51 +0000)]
Add the stubs to properties related functions in real life
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4889
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
mquinson [Fri, 26 Oct 2007 19:48:48 +0000 (19:48 +0000)]
Rename gras_os_property_value() to gras_os_host_property_value(); Documentation tiny improvements
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4888
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
quasar [Fri, 26 Oct 2007 18:58:19 +0000 (18:58 +0000)]
provide a value for the properties of the child
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4887
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
quasar [Fri, 26 Oct 2007 18:53:23 +0000 (18:53 +0000)]
let's also be brutal with what seems to be a typo from Malek [Mt]
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4886
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
quasar [Fri, 26 Oct 2007 18:52:39 +0000 (18:52 +0000)]
Let's be brutal since we fail to understand the problem: time to get some food&sleep
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4885
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
quasar [Fri, 26 Oct 2007 18:24:57 +0000 (18:24 +0000)]
relax ordering enforcement
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4884
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
quasar [Fri, 26 Oct 2007 18:24:08 +0000 (18:24 +0000)]
these symbols where only defined as extern, fooling the linker (plus some cleanups in the output when the XML is too old
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4883
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
quasar [Fri, 26 Oct 2007 18:01:06 +0000 (18:01 +0000)]
move the callback lists to the public headers
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4882
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
quasar [Fri, 26 Oct 2007 17:49:47 +0000 (17:49 +0000)]
Update the bypass example to the lastest DTD
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4881
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
quasar [Fri, 26 Oct 2007 17:42:10 +0000 (17:42 +0000)]
update all the XML files
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4880
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
quasar [Fri, 26 Oct 2007 17:07:04 +0000 (17:07 +0000)]
oops, my last minute cleanup broke everything [Mt]
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4878
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
quasar [Fri, 26 Oct 2007 16:46:59 +0000 (16:46 +0000)]
kill cruft
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4877
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
quasar [Fri, 26 Oct 2007 16:45:56 +0000 (16:45 +0000)]
* Cleanup the DTD by renaming:
<cpu> to <host>
<network_link> to <link>
<route_element> to <link:ctn>
"name" attributes to "id"
* Modify the DTD to add properties to <process>, <host> and <link>
In the DTD, these are <prop name=... value=...> subtags, and this
can be retrieved as a xbt_dict from the source code (see below)
* Add the following functions to the user API to retrieve (as
xbt_dict) the properties defined in XML:
xbt_dict_t SD_link_get_properties(SD_link_t link);
const char* SD_link_get_property_value(SD_link_t l,char* name);
and, on the same model,
SD_workstation_get_{properties,property_value}()
MSG_process_get_{properties,property_value}()
MSG_host_get_{properties,property_value}()
gras_process_get_{properties,property_value}()
gras_os_host_get_{properties,property_value}()
* Modify the parser to work in one pass only.
Some more work may be done so that surf does the parsing after the
models have declared the callbacks.
* Enforce the order in the DTD: routes must come after the last CPU,
router and link
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4876
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
cherierm [Fri, 26 Oct 2007 09:12:09 +0000 (09:12 +0000)]
a distraction
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4875
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
cherierm [Fri, 26 Oct 2007 08:56:35 +0000 (08:56 +0000)]
This change the semantic of the timed function. The behavior depends now of the value of the parameters delay or timeout. If these parameters are negative, the timed function have the behavior of a blocking function. For example the following call : xbt_os_mutex_timedacquire(mutex,-1) is equivalent to xbt_os_mutex_acquire(mutex). If you set these parameters to zero
the timed function have the behavior of a try function. For example, to try to lock a mutex you must call the xbt_os_mutex_timedacquire() function with the parameter delay/timeout set to zero.
Finally, if you specify a delay more than zero, the timed function try to acquire the lock until the delay was expired, which is the normal behavior of the function.
Remark : the changes of the other files are the consequence of this new semantic : because the timed functions also implement the behavior of the try functions, theirs declarations and theirs definitions are removed.
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4874
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
mquinson [Thu, 25 Oct 2007 18:27:49 +0000 (18:27 +0000)]
Tiny improvement of the search speed
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4873
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
cherierm [Thu, 25 Oct 2007 16:01:56 +0000 (16:01 +0000)]
the version of the xbt_os_time() function needs the declaration of the structure timeval. The structure of this function change :
if the macro HAVE_GETTIMEOFDAY is defined or if we are on a Windows platform compute the timeval and return else use the poor resolution.
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4872
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
cherierm [Thu, 25 Oct 2007 15:22:24 +0000 (15:22 +0000)]
the inclusion of the header stat.h is tested in the file portability header portable.h (HAVE_SYS_STAT_H)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4871
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
cherierm [Thu, 25 Oct 2007 12:48:06 +0000 (12:48 +0000)]
distraction
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4870
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
cherierm [Thu, 25 Oct 2007 12:10:39 +0000 (12:10 +0000)]
distraction
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4869
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
cherierm [Thu, 25 Oct 2007 12:02:09 +0000 (12:02 +0000)]
Visual C++ need sys/stat.h for open() function
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4868
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
cherierm [Thu, 25 Oct 2007 11:58:39 +0000 (11:58 +0000)]
just had SG_BEGIN_DECL and SG_END_DECL macro (for c++ compilers)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4867
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
cherierm [Thu, 25 Oct 2007 11:57:20 +0000 (11:57 +0000)]
Most of this change is the consequence of the refactoring of the name of the function connected to the mutex object and of the unsupported semaphore function on MAC OS X.
The file synchro.h rename the functions xbt_mutex_acquire() and xbt_mutex_release() to xbt_mutex_acquire() an respectively xbt_mutex_release().
This file also contains the declaration of two new functions xbt_mutex_tryacquire() and xbt_mutex_timedacquire(). The first
is the non blocking version of the function xbt_mutex_acquire() (if the lock is already owned by an other thread the function immediately
returns). The second function xbt_mutex_timedacquire() attempts to get the mutex during a specified delay (timeout), if the lock is not available
during this delay the function returns (throws a timeout exception). These functions (for the real life) are defined in the file xbt_rl_synchro.c and (for the simulation) in the file xbt_sg_synchro.c.
The header xbt_os_thread.h declare two new functions xbt_os_mutex_tryacquire() and xbt_os_mutex_timedaquire(). These functions represent
the implementation of the xbt_mutex_tryacquire() and xbt_mutex_timeacquire() for the real live.
These functions are implemented in the source code file xbt_os_thread.c.
The change in the files dynar.c and xbt_queue.c, philosopher.c and parallel_log_crashtest.c is the consequence of the refactoring of the functions previously described.
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4866
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
cherierm [Thu, 25 Oct 2007 11:55:34 +0000 (11:55 +0000)]
The configuration file visualc.h is change to declare the _WIN32_WINNT macro before the inclusion of the windows.h header (this permits to use the TryEnterCriticalSection() only available if the previous macro is more or equals to 0x400).
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4865
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
mquinson [Thu, 25 Oct 2007 08:33:48 +0000 (08:33 +0000)]
cleanup windows portability in there
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4864
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
mquinson [Tue, 23 Oct 2007 13:51:24 +0000 (13:51 +0000)]
Reduce the unimplemented part
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4863
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
mquinson [Tue, 23 Oct 2007 13:50:08 +0000 (13:50 +0000)]
also autogenerated
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4862
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
mquinson [Tue, 23 Oct 2007 13:49:13 +0000 (13:49 +0000)]
autogenerated
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4861
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
mquinson [Tue, 23 Oct 2007 13:45:58 +0000 (13:45 +0000)]
Kill broken portability bits for visual and macosx
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4860
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
mquinson [Tue, 23 Oct 2007 13:43:32 +0000 (13:43 +0000)]
Do not include the useless semaphore standard header. It's not needed, and moreover, it seems to load stdio itself. So, loading semaphore from here causes getline to become undefined since stdio.h is loaded before portable.h got a chance to declare _GNU_SOURCE
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4859
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
mquinson [Tue, 23 Oct 2007 13:38:19 +0000 (13:38 +0000)]
printf format fixups
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4858
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
mquinson [Tue, 23 Oct 2007 13:29:19 +0000 (13:29 +0000)]
* Check that sem_timedwait is available (since it's not on mac osx)
* Check only once that pthread is available (and use previous result
the second time)
* Remove a useless rewrite (s/pthreads/pthread/) in with_context since
nobody ever put pthreads as a value to this variable.
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4857
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
mquinson [Tue, 23 Oct 2007 12:13:01 +0000 (12:13 +0000)]
Cosmetics on error messages
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4855
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
cherierm [Tue, 23 Oct 2007 11:26:19 +0000 (11:26 +0000)]
Mac OS X doesn't provide the sem_timedwait() function.
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4854
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
cherierm [Tue, 23 Oct 2007 09:54:00 +0000 (09:54 +0000)]
Just add the simgrid library in the entries of the linker of Visual C++.
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4853
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
cherierm [Tue, 23 Oct 2007 09:53:15 +0000 (09:53 +0000)]
This change is about the the add-on of the semaphore examples and by the implementation of the gettimeofday() functions for Windows.
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4852
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
cherierm [Tue, 23 Oct 2007 09:48:57 +0000 (09:48 +0000)]
Add the Visual C++ projects of the new examples sem_basic and sem_sched.
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4851
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
cherierm [Tue, 23 Oct 2007 09:42:53 +0000 (09:42 +0000)]
This new directory contains two samples explaining the usage of the semaphore interface provide by the xbt layer.
The first example : sem_basic, show how to use a semaphore to manage the access of a global variable shared by multiple threads.
The second example : sem_sched, show how to use the semaphore interface to implement a simple context switch based on threads.
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4850
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
cherierm [Tue, 23 Oct 2007 09:38:51 +0000 (09:38 +0000)]
This implement the function gettimeofday() for win32 (Visual C++ does not provides this function)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4849
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
cherierm [Tue, 23 Oct 2007 09:37:14 +0000 (09:37 +0000)]
This change is about the refactoring of the source code of the objects use int the msg synchronization mechanism :
- the functions xbt_os_mutex_lock() and xbt_os_mutex_unlock() are renamed xbt_os_mutex_acquire() and xbt_os_mutex_release() respectively
- the functions xbt_os_sem_wait() and xbt_os_sem_post() are renamed xbt_os_sem_acquire() and xbt_os_sem_release() respectively
This renaming impacts the folowing files :
- xbt_os_thread.h and xbt_os_thread.c
- context.c
- xbt_rl_synchro.c
- run_context.c
In addition the function unschedule() declared an defined in the file context.c is renamed yield().
The prototype of the function xbt_os_sem_init() takes now only one parameter : the initial value of the semaphore.
The second parameter of the function xbt_os_sem_timedacquire() which replace the function xbt_os_sem_timedwait() is now a double (desired timeout in seconds).
To finish, the semaphore interface of the xbt portability layer does not expose the functions xbt_os_sem_open() and xbt_sem_close().
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4848
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
cherierm [Mon, 22 Oct 2007 15:02:21 +0000 (15:02 +0000)]
use the XBT_EXPORT_NO_IMPORT macro instead XBT_PUBLIC_DATA and add the keyword extern to avoid the gcc compiler warnings
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4847
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
cherierm [Mon, 22 Oct 2007 11:36:59 +0000 (11:36 +0000)]
this declarations and definitions are only concerned by the thread implementation of the xbt context
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4846
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
cherierm [Mon, 22 Oct 2007 09:29:37 +0000 (09:29 +0000)]
This change exports the gras_procdata pointer and use the Win32 function GetCurrentProcessId() instead the function GetCurrentProcess() to get the process identifier
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4845
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
cherierm [Mon, 22 Oct 2007 09:24:55 +0000 (09:24 +0000)]
Visual C++ already declare the isatty function in the header.h. So this change avoids the warning cause by this redeclaration for this compiler.
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4844
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
cherierm [Mon, 22 Oct 2007 09:18:51 +0000 (09:18 +0000)]
Remove the keyword extern to avoid the multiple declaration of the the variables declared with the macro XBT_PUBLIC_DATA;
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4843
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
cherierm [Mon, 22 Oct 2007 09:06:52 +0000 (09:06 +0000)]
Visual C++ already declare the isatty function in io.h. So this change avoids a warning for this compiler.
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4842
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
cherierm [Mon, 22 Oct 2007 09:02:24 +0000 (09:02 +0000)]
Visual C++ already declare the environ variable in the stdlib.h. So this redeclaration cause a warning for this compiler. The declaration of this variable is now platform depend (WIN32 doesn't need this declaration). The pointer of the callback functions context default an context terminate are now exported in the Win32 dll.
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4841
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
cherierm [Mon, 22 Oct 2007 08:55:32 +0000 (08:55 +0000)]
Remove the return keyword at the end of the void function.
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4840
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
cherierm [Mon, 22 Oct 2007 08:54:16 +0000 (08:54 +0000)]
Directly returns the newly created condition.
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4839
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
cherierm [Mon, 22 Oct 2007 08:51:31 +0000 (08:51 +0000)]
This change concerne the usage of the semaphore object instead the variable condition to synchronize the msg processes during a simulation.
The xbt_os_sem_t type represents a semaphore and you' ll find its declaration in the header xbt_os_thread.h and its implementation in the file xbt_os_thread.c.
The file portable.h is modified to declare the function gettimeofday() used by many several other functions such the function xbt_os_sem_timedwait() declared in
the header xbt_os_thread.h. The context structure declared in the header context_private.h is modified to use the semaphore instead the condition variable.
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4838
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
cherierm [Mon, 22 Oct 2007 08:37:06 +0000 (08:37 +0000)]
This, modify the declaration of type of function pointer. It also clear the warnings throws by the compiler Visual C++ when occurs a comparison between an unsigned with and a signed integer.
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4837
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
mquinson [Sun, 21 Oct 2007 07:46:30 +0000 (07:46 +0000)]
Kill a rather outdated section.
Most parts are now in the History document, for the curious.
The rest, such as "we want to make everything as clean as possible
before releasing SimGrid v.3" can certainly be removed now that
SimGrid v3 is released since two years.
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4836
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
mquinson [Fri, 19 Oct 2007 10:13:22 +0000 (10:13 +0000)]
Rename section title to betterly express the agenda (generating platforms, then expressing specific things in them, then ...)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4826
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
mquinson [Fri, 19 Oct 2007 10:01:38 +0000 (10:01 +0000)]
Improve section about platform generation/mapping/collection
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4825
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
mquinson [Thu, 18 Oct 2007 08:59:21 +0000 (08:59 +0000)]
strlen does not return int but size_t on 64bits
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4824
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
alegrand [Tue, 16 Oct 2007 13:54:48 +0000 (13:54 +0000)]
'major bug' fix in ptask_L07.
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4823
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
alegrand [Tue, 16 Oct 2007 13:53:16 +0000 (13:53 +0000)]
Improve debug readability.
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4822
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
alegrand [Fri, 12 Oct 2007 10:31:51 +0000 (10:31 +0000)]
Adding a new test.
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4821
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
markls [Fri, 12 Oct 2007 10:29:31 +0000 (10:29 +0000)]
code cleanup, streamlining, removed some redundant function calls.
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4820
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
mquinson [Fri, 12 Oct 2007 09:16:36 +0000 (09:16 +0000)]
Let's be VPATH friendly
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4819
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
mquinson [Fri, 12 Oct 2007 09:02:48 +0000 (09:02 +0000)]
Allow java to compile in VPATH settings (at the price of a GNUism in the makefile)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4818
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
mquinson [Fri, 12 Oct 2007 08:29:53 +0000 (08:29 +0000)]
Autogenerated
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4817
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
mquinson [Fri, 12 Oct 2007 08:26:54 +0000 (08:26 +0000)]
Oops, I forgot this one
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4816
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
mquinson [Fri, 12 Oct 2007 08:26:26 +0000 (08:26 +0000)]
Enforce some order on the tags; needs flexml 1.8 to get relevant error messages when the order is violated by the document
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4815
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
mquinson [Fri, 12 Oct 2007 08:21:24 +0000 (08:21 +0000)]
ignore more cruft
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4814
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
mquinson [Fri, 12 Oct 2007 08:21:03 +0000 (08:21 +0000)]
typo
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4813
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
mquinson [Fri, 12 Oct 2007 08:19:46 +0000 (08:19 +0000)]
Do not truncate the output on large messages, but switch to a dynamically allocated buffer
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4812
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
cherierm [Thu, 11 Oct 2007 10:27:01 +0000 (10:27 +0000)]
return NULL to avoid that the function returns an invalid pointer
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4811
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
cherierm [Thu, 11 Oct 2007 10:17:17 +0000 (10:17 +0000)]
this directory contains all the projects of the exemples msg and simdag for Visual C++
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4810
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
cherierm [Thu, 11 Oct 2007 09:20:41 +0000 (09:20 +0000)]
add the project group of simgrid (contains the msg samples and the simdag sample)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4809
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
cherierm [Thu, 11 Oct 2007 09:13:08 +0000 (09:13 +0000)]
delete the account of the buildbot
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4808
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
mquinson [Thu, 11 Oct 2007 07:41:42 +0000 (07:41 +0000)]
Move string buffers from 'private to tesh' to 'public in xbt' (I'm gonna use them in logs for messages too long to fit into the statically sized string buffer)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4807
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
mquinson [Thu, 11 Oct 2007 06:57:25 +0000 (06:57 +0000)]
Move private definition out of the log.h public header. Moreover, this public header is already complicated enough, and loaded everywhere
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4806
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
mquinson [Thu, 11 Oct 2007 06:22:35 +0000 (06:22 +0000)]
Do truncate files before writting into it (gras file sockets are streams, seeking into it to change only subparts is a non-sense)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4805
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
mquinson [Wed, 10 Oct 2007 22:56:54 +0000 (22:56 +0000)]
Erm. Really revalidate this dataset (old one must be removed before regeneration since server file sockets do not blank the file before use).
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4804
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
mquinson [Wed, 10 Oct 2007 22:50:27 +0000 (22:50 +0000)]
Revalidate this dataset after the move to full blown messages instead of direct transport layer use
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4803
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
mquinson [Wed, 10 Oct 2007 22:44:47 +0000 (22:44 +0000)]
Let's play safe here and don't loose the first char if the socket was already tested alive in hte last select, but not read from by caller (which would be such a weirdo)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4802
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
mquinson [Wed, 10 Oct 2007 22:43:31 +0000 (22:43 +0000)]
cosmetics
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4801
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
mquinson [Wed, 10 Oct 2007 22:42:59 +0000 (22:42 +0000)]
Display hexa representation of the borken header if any, since it's often binary garbage
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4800
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
mquinson [Wed, 10 Oct 2007 22:41:46 +0000 (22:41 +0000)]
Change completely the test to use messages instead of mucking directly with the transport layer: the listener thread won't let us play in his garden so easily
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4799
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
mquinson [Wed, 10 Oct 2007 15:56:21 +0000 (15:56 +0000)]
Do display where the exception comes from when dealing with remote exceptions
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4798
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
mquinson [Wed, 10 Oct 2007 15:55:26 +0000 (15:55 +0000)]
cosmetics
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4797
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
mquinson [Wed, 10 Oct 2007 15:54:23 +0000 (15:54 +0000)]
Do not use recv() but read() to check whether a socket returned by select() is valid to use or good to close. That way, it works not only for real sockets but also for file ones. This implies having a 1-byte-long buffer in the socket for the data we got during this check, and using this micro buffer before the rest of the content in the gras_*_recv()
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4796
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
mquinson [Wed, 10 Oct 2007 15:49:30 +0000 (15:49 +0000)]
Kill old cruft
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4795
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
mquinson [Wed, 10 Oct 2007 12:38:37 +0000 (12:38 +0000)]
And now, make sure that the logging of the log module do not appear all the time, but only when the module is under debug
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4794
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
mquinson [Wed, 10 Oct 2007 12:26:22 +0000 (12:26 +0000)]
Some more debugging, plus killing a stupid bug: when searching in a tree, exploring the first branch [and raising a not_found exception on the first leave] is not quite enough
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4793
48e7efb5-ca39-0410-a469-
dd3cf9ba447f