WPILibC++ 2024.3.2
|
#include <wpinet/WorkerThread.h>
Public Types | |
using | Request = WorkerThreadRequest< R, T... > |
Public Member Functions | |
void | Main () override |
Public Member Functions inherited from wpi::SafeThread | |
void | Stop () override |
Public Member Functions inherited from wpi::SafeThreadBase | |
virtual | ~SafeThreadBase ()=default |
virtual void | Main ()=0 |
virtual void | Stop ()=0 |
Public Attributes | |
std::vector< Request > | m_requests |
PromiseFactory< R > | m_promises |
detail::WorkerThreadAsync< R > | m_async |
Public Attributes inherited from wpi::SafeThread | |
wpi::condition_variable | m_cond |
Public Attributes inherited from wpi::SafeThreadBase | |
wpi::mutex | m_mutex |
std::atomic_bool | m_active {true} |
std::thread::id | m_threadId |
using wpi::detail::WorkerThreadThread< R, T >::Request = WorkerThreadRequest<R, T...> |
|
overridevirtual |
Implements wpi::SafeThreadBase.
detail::WorkerThreadAsync<R> wpi::detail::WorkerThreadThread< R, T >::m_async |
PromiseFactory<R> wpi::detail::WorkerThreadThread< R, T >::m_promises |
std::vector<Request> wpi::detail::WorkerThreadThread< R, T >::m_requests |