Skip to content

Commit

Permalink
Add comment about why runner is created on the heap
Browse files Browse the repository at this point in the history
  • Loading branch information
lisajulia committed Jul 15, 2024
1 parent bdeddda commit cedd34a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/test_tasklets.cc
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@

std::mutex outputMutex;

// The runner is created on the heap for the assertion and outputs in the run function of the tasklets.
Opm::TaskletRunner *runner;

class SleepTasklet : public Opm::TaskletInterface
Expand Down
1 change: 1 addition & 0 deletions tests/test_tasklets_failure.cc
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@

std::mutex outputMutex;

// The runner is created on the heap for the assertion and outputs in the run function of the tasklets.
Opm::TaskletRunner *runner;

class SleepTasklet : public Opm::TaskletInterface
Expand Down

0 comments on commit cedd34a

Please sign in to comment.