|
31 | 31 |
|
32 | 32 | #include "instrument/ompLogicInstrumentInterface.hpp" |
33 | 33 |
|
34 | | -#include "masterOmpLogic.hpp" |
| 34 | +#include "maskedOmpLogic.hpp" |
35 | 35 |
|
36 | | -void opdi::MasterOmpLogic::reverseFunc(void *dataPtr) { |
| 36 | +void opdi::MaskedOmpLogic::reverseFunc(void *dataPtr) { |
37 | 37 |
|
38 | 38 | #if OPDI_OMP_LOGIC_INSTRUMENT |
39 | 39 | Data* data = static_cast<Data*>(dataPtr); |
40 | 40 | for (auto& instrument : ompLogicInstruments) { |
41 | | - instrument->reverseMaster(data); |
| 41 | + instrument->reverseMasked(data); |
42 | 42 | } |
43 | 43 | #else |
44 | 44 | OPDI_UNUSED(dataPtr); |
45 | 45 | #endif |
46 | 46 | } |
47 | 47 |
|
48 | | -void opdi::MasterOmpLogic::deleteFunc(void* dataPtr) { |
| 48 | +void opdi::MaskedOmpLogic::deleteFunc(void* dataPtr) { |
49 | 49 |
|
50 | 50 | Data* data = static_cast<Data*>(dataPtr); |
51 | 51 | delete data; |
52 | 52 | } |
53 | 53 |
|
54 | | -void opdi::MasterOmpLogic::onMaster(ScopeEndpoint endpoint) { |
| 54 | +void opdi::MaskedOmpLogic::onMasked(ScopeEndpoint endpoint) { |
55 | 55 |
|
56 | 56 | #if OPDI_OMP_LOGIC_INSTRUMENT |
57 | 57 | if (tool->getThreadLocalTape() != nullptr && tool->isActive(tool->getThreadLocalTape())) { |
58 | 58 |
|
59 | 59 | for (auto& instrument : ompLogicInstruments) { |
60 | | - instrument->onMaster(endpoint); |
| 60 | + instrument->onMasked(endpoint); |
61 | 61 | } |
62 | 62 |
|
63 | 63 | Data* data = new Data; |
64 | 64 | data->endpoint = endpoint; |
65 | 65 |
|
66 | 66 | Handle* handle = new Handle; |
67 | 67 | handle->data = static_cast<void*>(data); |
68 | | - handle->reverseFunc = MasterOmpLogic::reverseFunc; |
69 | | - handle->deleteFunc = MasterOmpLogic::deleteFunc; |
| 68 | + handle->reverseFunc = MaskedOmpLogic::reverseFunc; |
| 69 | + handle->deleteFunc = MaskedOmpLogic::deleteFunc; |
70 | 70 | tool->pushExternalFunction(tool->getThreadLocalTape(), handle); |
71 | 71 | } |
72 | 72 | #else |
|
0 commit comments