Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
workaround a possible race condition
authorMartin Quinson <martin.quinson@loria.fr>
Tue, 18 Aug 2015 00:35:19 +0000 (02:35 +0200)
committerMartin Quinson <martin.quinson@loria.fr>
Tue, 18 Aug 2015 00:40:09 +0000 (02:40 +0200)
commit378e58e9837189ededb22127eb7ba34bf989613f
tree212d5eccf81ffd760578fe26557fb84199b303b6
parentdba36dacc49a8c0788a59d66ac5e201869bd512c
workaround a possible race condition

when several processes run s4u::Mailbox::byName on an non existant
mailbox in the same round, only one simix object is created thanks to
the simcall, but 2 S4U objects are created. Use only one of them, and
leak the other one.
include/simgrid/s4u/mailbox.hpp
src/s4u/s4u_mailbox.cpp