Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix a god damn race condition: make sure nobody changes the dynar->used value before...
authormquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Fri, 7 Mar 2008 21:32:52 +0000 (21:32 +0000)
committermquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Fri, 7 Mar 2008 21:32:52 +0000 (21:32 +0000)
commitb9e946cdde00d87529a22bd6e152357d8e71e935
tree2d740ed3e0dfa474caa16fb2249202fb739e6c86
parent5d449744bf13fe169eaee166e0cba7453d410b0d
Fix a god damn race condition: make sure nobody changes the dynar->used value before we get the lock by actually locking before reading it (inline xbt_dynar_insert_at in xbt_dynar_push)

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@5283 48e7efb5-ca39-0410-a469-dd3cf9ba447f
src/xbt/dynar.c