Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
This change concerne the usage of the semaphore object instead the variable condition...
authorcherierm <cherierm@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Mon, 22 Oct 2007 08:51:31 +0000 (08:51 +0000)
committercherierm <cherierm@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Mon, 22 Oct 2007 08:51:31 +0000 (08:51 +0000)
commitdfe761f4bc8d35a74c3da5fabe99630c0788001f
tree9a24747a7d4b934e663f8e8c33317b8ec7ddf7f0
parent7c5d24856794b213573f5e67bf138db144dac2eb
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
src/include/xbt/xbt_os_thread.h
src/portable.h
src/win32/compiler/visualc.h
src/xbt/context.c
src/xbt/context_private.h
src/xbt/xbt_os_thread.c