WPILibC++ 2024.3.2
wpi::java::JCallbackManager< T > Class Template Reference

#include <wpi/jni_util.h>

Inheritance diagram for wpi::java::JCallbackManager< T >:
wpi::SafeThreadOwner< JCallbackThread< T > > wpi::detail::SafeThreadOwnerBase wpi::java::JSingletonCallbackManager< T >

Public Member Functions

 JCallbackManager ()
 
void SetFunc (JNIEnv *env, jobject func, jmethodID mid)
 
template<typename... Args>
void Send (Args &&... args)
 
- Public Member Functions inherited from wpi::SafeThreadOwner< JCallbackThread< T > >
void Start (Args &&... args)
 
Proxy GetThread () const
 
std::shared_ptr< JCallbackThread< T > > GetThreadSharedPtr () const
 
- Public Member Functions inherited from wpi::detail::SafeThreadOwnerBase
void Stop ()
 
void Join ()
 
 SafeThreadOwnerBase () noexcept=default
 
 SafeThreadOwnerBase (const SafeThreadOwnerBase &)=delete
 
SafeThreadOwnerBaseoperator= (const SafeThreadOwnerBase &)=delete
 
 SafeThreadOwnerBase (SafeThreadOwnerBase &&other) noexcept
 
SafeThreadOwnerBaseoperator= (SafeThreadOwnerBase &&other) noexcept
 
 ~SafeThreadOwnerBase ()
 
 operator bool () const
 
std::thread::native_handle_type GetNativeThreadHandle ()
 
void SetJoinAtExit (bool joinAtExit)
 

Additional Inherited Members

- Public Types inherited from wpi::SafeThreadOwner< JCallbackThread< T > >
using Proxy = typename detail::SafeThreadProxy< JCallbackThread< T > >
 
- Protected Member Functions inherited from wpi::detail::SafeThreadOwnerBase
void Start (std::shared_ptr< SafeThreadBase > thr)
 
std::shared_ptr< SafeThreadBaseGetThreadSharedPtr () const
 

Constructor & Destructor Documentation

◆ JCallbackManager()

template<typename T >
wpi::java::JCallbackManager< T >::JCallbackManager ( )
inline

Member Function Documentation

◆ Send()

template<typename T >
template<typename... Args>
void wpi::java::JCallbackManager< T >::Send ( Args &&...  args)

◆ SetFunc()

template<typename T >
void wpi::java::JCallbackManager< T >::SetFunc ( JNIEnv *  env,
jobject  func,
jmethodID  mid 
)

The documentation for this class was generated from the following file: