Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Avoid to call Context::stop() again when a StopRequest was thrown.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Tue, 22 Jan 2019 19:48:43 +0000 (20:48 +0100)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Tue, 22 Jan 2019 19:54:22 +0000 (20:54 +0100)
commit1fa0907fa303867668e0a19ffebb91d4bc4920ad
tree7050cd9a2152c12e012df51f8d507d894d4a286f
parent7d64988335beb37aedc891734932635a27cfd9cb
Avoid to call Context::stop() again when a StopRequest was thrown.

It's already called just before the exception is thrown by the stop() method
(SwappedContext or ThreadContext).
Asan likes it better when it's called before throwing the exception.
src/kernel/context/ContextBoost.cpp
src/kernel/context/ContextRaw.cpp
src/kernel/context/ContextThread.cpp
src/kernel/context/ContextUnix.cpp