|
Open Model Railroad Network (OpenMRN)
|
Read thread implementation with template-inspecific methods. More...
#include <HubDevice.hxx>
Public Member Functions | |
| ReadThreadBase (FdHubPortBase *port) | |
| Constructor. | |
| virtual int | unit ()=0 |
| virtual int | buf_size ()=0 |
| virtual void | send_message (const void *buf, int size)=0 |
| Sends off a buffer. | |
| void * | entry () OVERRIDE |
| User entry point for the created thread. | |
Public Member Functions inherited from OSThread | |
| OSThread (const char *name, int priority, size_t stack_size, void *(*start_routine)(void *), void *arg) | |
| Create a thread. | |
| OSThread () | |
| Creates a thread via inheritance. | |
| void | start (const char *name, int priority, size_t stack_size) |
| Starts the thread. | |
| virtual | ~OSThread () |
| Default destructor. | |
| bool | is_created () |
| void | inherit () |
| Inherits the current thread. | |
| os_thread_t | get_handle () |
| void | lock_to_thread () |
| Sets the thread handle to the current calling thread's. | |
| void | unlock_from_thread () |
| Resets the thread handle to none. | |
Protected Attributes | |
| FdHubPortBase * | port_ |
| Parent port. | |
Additional Inherited Members | |
Static Public Member Functions inherited from OSThread | |
| static int | getpriority (OSThread *thread) |
| Return the current thread priority. | |
| static int | get_priority (OSThread *thread) |
| Return the current thread priority. | |
| static int | get_priority_min () |
| Get the minimum thread priority. | |
| static int | get_priority_max () |
| Get the maximum thread priority. | |
Read thread implementation with template-inspecific methods.
Definition at line 128 of file HubDevice.hxx.
|
inline |
|
pure virtual |
Implemented in FdHubPort< HFlow >::ReadThread.
|
inlinevirtual |
User entry point for the created thread.
Reimplemented from OSThread.
Definition at line 143 of file HubDevice.hxx.
|
pure virtual |
Sends off a buffer.
Implemented in FdHubPort< HFlow >::ReadThread, FdHubPort< HFlow >::ReadThread, and FdHubPort< HFlow >::ReadThread.
|
pure virtual |
Implemented in FdHubPort< HFlow >::ReadThread.
|
protected |
Parent port.
Definition at line 191 of file HubDevice.hxx.