Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
do not downcast activities to the wrong type just to get their name
authorMartin Quinson <martin.quinson@ens-rennes.fr>
Sun, 10 May 2020 12:41:20 +0000 (14:41 +0200)
committerMartin Quinson <martin.quinson@ens-rennes.fr>
Sun, 10 May 2020 12:52:02 +0000 (14:52 +0200)
commitf626888caadf3f7020eb820d9146772c1c349144
treedab806ed9b15004467fb7d36619a998896d087f6
parente599303392d7cf5795927906bc44619ab60dfcaf
do not downcast activities to the wrong type just to get their name

- I use a protected method to keep my data private. Doing otherwise
  would trigger sonar to complain.
- The code is not particularly clear this way, but I fail to see how
  to do otherwise: I don't want the getter to become a virtual method.
- This was reported by UndefSan now that we have a test that deadlocks.
src/kernel/activity/ActivityImpl.hpp
src/simix/smx_global.cpp