|
morph 0.1.0
Asynchronous bridge between GUI thread and business models
|
Records every owner check a loop-owned body makes while this object is alive (morph::exec::detail::noteOwner), and what the calling thread's executor scope said at that moment. More...
#include <owner_probe_recorder.hpp>
Classes | |
| struct | Seen |
| One owner check. More... | |
Public Member Functions | |
| OwnerProbeRecorder (::core::async::IExecutor const &expected) | |
| Installs this recorder as the process's owner probe. | |
| ~OwnerProbeRecorder () | |
| Uninstalls the probe, then waits for every thread still inside record(). | |
| OwnerProbeRecorder (const OwnerProbeRecorder &)=delete | |
| OwnerProbeRecorder & | operator= (const OwnerProbeRecorder &)=delete |
| OwnerProbeRecorder (OwnerProbeRecorder &&)=delete | |
| OwnerProbeRecorder & | operator= (OwnerProbeRecorder &&)=delete |
| std::vector< Seen > | at (std::string_view site) const |
| The checks made at one site. | |
| std::size_t | count (std::string_view site) const |
| How many checks were made at one site. | |
| bool | allPosted (std::string_view site) const |
| Whether every check at one site ran posted to the expected owner. | |
Records every owner check a loop-owned body makes while this object is alive (morph::exec::detail::noteOwner), and what the calling thread's executor scope said at that moment.
What a posted-call test reads: a verb called from a thread that is not the loop, whose body then shows up here with onOwner == true, was posted. A body run inline on the caller's thread shows up with onOwner == false. The scope is read here, by the test, not taken from the component.
Definition at line 31 of file owner_probe_recorder.hpp.
|
inlineexplicit |
Installs this recorder as the process's owner probe.
| expected | The owner every check is expected to name: the IoLoop's loop. |
Definition at line 46 of file owner_probe_recorder.hpp.
|
inline |
Uninstalls the probe, then waits for every thread still inside record().
Definition at line 52 of file owner_probe_recorder.hpp.
|
inlinenodiscard |
The checks made at one site.
| site | The site name. |
site so far. Definition at line 71 of file owner_probe_recorder.hpp.
|
inlinenodiscard |
How many checks were made at one site.
| site | The site name. |
site. Definition at line 85 of file owner_probe_recorder.hpp.
|
inlinenodiscard |
Whether every check at one site ran posted to the expected owner.
| site | The site name. |
site, and every one of them ran inside a task of the expected owner. Definition at line 91 of file owner_probe_recorder.hpp.