Commit graph

2 commits

Author SHA1 Message Date
Emil Fresk
46a3f2befd Fix UB in the access of Priority for asyc executors
The `Priority` was generated on the stack in the dispatcher
which caused it to be dropped after usage. This is now fixed
by having the `Priority` being a static variable for executors
2022-08-05 11:37:16 +02:00
Emil Fresk
b48a95e879 Fix codegen when having executor at multiple priorities
The codegen generated code for all executors in all
dispatchers, which caused some weird bugs.
Also the definition of an executor was not generated
globally, this caused use after free errors when having
multiple priority levels.
2022-08-05 09:00:46 +02:00