|
ThreadSchedule 4.1.0
Modern C++ thread management library
|
Optional compiler diagnostics for borrowed references and pointers. More...
Go to the source code of this file.
Macros | |
| #define | THREADSCHEDULE_LIFETIMEBOUND |
| #define | THREADSCHEDULE_POINTER |
| #define | THREADSCHEDULE_OWNER |
| #define | THREADSCHEDULE_NOESCAPE |
Optional compiler diagnostics for borrowed references and pointers.
These annotations do not extend lifetimes or change storage or ownership. noescape is also an optimizer contract: only use it when the function cannot retain or return a reference derived from the parameter, or deallocate it.
Definition in file lifetime.hpp.
| #define THREADSCHEDULE_LIFETIMEBOUND |
Definition at line 28 of file lifetime.hpp.
Referenced by threadschedule::thread_affinity::cpus(), threadschedule::detail::expected_void< void, E >::error(), threadschedule::detail::expected_void< void, E >::error(), threadschedule::detail::expected_void< void, E >::error(), threadschedule::detail::expected_void< void, E >::error(), threadschedule::expected< U, E >::error(), threadschedule::expected< U, E >::error(), threadschedule::expected< U, E >::error(), threadschedule::expected< U, E >::error(), threadschedule::unexpected< E >::error(), threadschedule::unexpected< E >::error(), threadschedule::unexpected< E >::error(), threadschedule::unexpected< E >::error(), threadschedule::detail::function_ref< R(Args...)>::function_ref(), threadschedule::thread_config::get_affinity(), threadschedule::thread_config::get_name(), threadschedule::thread_config::get_scheduling(), threadschedule::expected< U, E >::operator*(), threadschedule::expected< U, E >::operator*(), threadschedule::expected< U, E >::operator*(), threadschedule::expected< U, E >::operator*(), threadschedule::expected< U, E >::operator->(), threadschedule::expected< U, E >::operator->(), threadschedule::thread_view::thread_view(), threadschedule::thread_view::thread_view(), threadschedule::expected< U, E >::value(), threadschedule::expected< U, E >::value(), threadschedule::expected< U, E >::value(), and threadschedule::expected< U, E >::value().
| #define THREADSCHEDULE_NOESCAPE |
Definition at line 38 of file lifetime.hpp.
Referenced by threadschedule::thread_view::configure(), threadschedule::thread_view::set_affinity(), and threadschedule::thread_view::set_name().
| #define THREADSCHEDULE_OWNER |
Definition at line 35 of file lifetime.hpp.
| #define THREADSCHEDULE_POINTER |
Definition at line 32 of file lifetime.hpp.