Arne Morten Kvarving
13b575eae9
tasklets: introduce translation unit
2024-09-04 12:06:21 +02:00
Arne Morten Kvarving
d35d80427e
tasklets.hh: rename to tasklets.hpp
2024-09-04 12:06:21 +02:00
Lisa Julia Nebel
0a70296eb9
Change pointer to tasklet runners to smart pointer and add comment about why they are created on the heap
2024-07-15 14:51:52 +02:00
Lisa Julia Nebel
c73a51650f
Change lock mechanism to std::lock_guard
2024-07-15 14:22:28 +02:00
Arne Morten Kvarving
d8723dc9ce
changed: ewoms/parallel -> opm/models/parallel
2019-09-16 09:48:55 +02:00
Arne Morten Kvarving
799585f9d7
changed: namespace Ewoms -> namespace Opm
2019-09-05 16:21:10 +02:00
Andreas Lauser
aed7e15d2e
fix extra compiler warnings
...
this is only relevant people who are masochistic enough to go beyond
`-Wall`. (note that at this warning level, there is plenty of noise from
Dune and other upstream dependencies.)
2018-07-02 09:17:56 +02:00
Andreas Lauser
6dde43dc0b
tasklets: allow to dispatch raw functions
2018-06-21 14:56:10 +02:00
Andreas Lauser
25e952fb49
tasklets test: guard against garbled output
...
Use a mutex to ensures that only a single prints at the same
time. this should prevent garbled terminal output and thus makes the
it much easier to read. on the flipside, some race conditions may go
unnoticed.
2018-04-23 13:24:59 +02:00
Andreas Lauser
5c9e20c00e
tasklets: introduce the concept of "worker thread index"
...
if the current thread is not a worker thread, this returns -1.
2018-04-23 13:24:59 +02:00
Andreas Lauser
2cb0176754
add an example for tasklets
...
it is IMO not good as a unit test because it does not excercise the
mechanism at all, but it shows how the mechanism is supposed to be
used.
2018-04-19 14:35:24 +02:00