Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix a race condition
authorMartin Quinson <martin.quinson@ens-rennes.fr>
Mon, 7 Jan 2019 10:34:57 +0000 (11:34 +0100)
committerMartin Quinson <martin.quinson@ens-rennes.fr>
Mon, 7 Jan 2019 10:35:00 +0000 (11:35 +0100)
commitaa9cfa5743045b941f3afca368462ea2be992a5f
tree56ef4054ab5931b9d0a046c808607b549a4ab14a
parent836d550dd0e6a85294e877cf7129b865bc0cb561
Fix a race condition

When saving the context of maestro, we must ensure that we are
actually thread 0. Otherwise, we may end up saving the context of a
minion (a working thread).
src/kernel/context/ContextSwapped.cpp
src/kernel/context/ContextSwapped.hpp