|
Open Model Railroad Network (OpenMRN)
|
Thread performing the read operations on the device. More...
#include <HubDevice.hxx>
Public Member Functions | |
| ReadThread (FdHubPort< HFlow > *port) | |
| Constructor. | |
| FdHubPort< HFlow > * | port () |
| int | unit () OVERRIDE |
| int | buf_size () OVERRIDE |
| void | send_message (const void *buf, int size) OVERRIDE |
| Sends off a buffer. | |
| void | send_message (const void *buf, int size) |
| Sends off a buffer. | |
| void | send_message (const void *buf, int size) |
| Sends off a buffer. | |
Public Member Functions inherited from FdHubPortBase::ReadThreadBase | |
| ReadThreadBase (FdHubPortBase *port) | |
| Constructor. | |
| 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. | |
Private Member Functions | |
| void | init () |
| Initializes the semaphore notifiables. | |
| const int | kUnit |
| const int | kBufSize |
| void | init () |
| const int | kUnit |
| const int | kBufSize |
| void | init () |
Private Attributes | |
| SemaphoreNotifiableBlock * | semaphores_ {nullptr} |
| If non-null, one slot will be acquired for each incoming message. | |
Static Private Attributes | |
| static const int | kUnit |
| This is the minimum number of bytes that we will send. | |
| static const int | kBufSize |
| We will allocate this many bytes for read buffer. | |
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. | |
Protected Attributes inherited from FdHubPortBase::ReadThreadBase | |
| FdHubPortBase * | port_ |
| Parent port. | |
Thread performing the read operations on the device.
Definition at line 322 of file HubDevice.hxx.
|
inline |
Definition at line 333 of file HubDevice.hxx.
|
inlinevirtual |
Implements FdHubPortBase::ReadThreadBase.
Definition at line 350 of file HubDevice.hxx.
|
private |
Definition at line 45 of file HubDevice.cxx.
|
private |
Definition at line 66 of file HubDevice.cxx.
|
private |
Definition at line 41 of file HubDevice.cxx.
|
private |
Definition at line 62 of file HubDevice.cxx.
|
private |
Definition at line 39 of file HubDevice.cxx.
|
private |
Definition at line 61 of file HubDevice.cxx.
Definition at line 338 of file HubDevice.hxx.
|
virtual |
Sends off a buffer.
Implements FdHubPortBase::ReadThreadBase.
Definition at line 52 of file HubDevice.cxx.
|
virtual |
Sends off a buffer.
Implements FdHubPortBase::ReadThreadBase.
Definition at line 76 of file HubDevice.cxx.
|
virtual |
Sends off a buffer.
Implements FdHubPortBase::ReadThreadBase.
|
inlinevirtual |
| this | is the minimum number of bytes that we will send. |
Implements FdHubPortBase::ReadThreadBase.
Definition at line 344 of file HubDevice.hxx.
|
staticprivate |
We will allocate this many bytes for read buffer.
This is the maximum number of bytes that we'll send.
Definition at line 367 of file HubDevice.hxx.
|
staticprivate |
This is the minimum number of bytes that we will send.
Definition at line 364 of file HubDevice.hxx.
|
private |
If non-null, one slot will be acquired for each incoming message.
Definition at line 361 of file HubDevice.hxx.