stec-platform
ReplyBlock Class Reference

The ReplyBlock class ReplyBlock reply block thread so it can be used again and again. This is quite a useful thread, it operates like QNX Reply blocking concept. Only running when someone tells it to. It handles all the signally and exits automatically when completed. Know what you are doing if you want to use this thread! More...

#include <replyblock.h>

Inheritance diagram for ReplyBlock:
Collaboration diagram for ReplyBlock:

Classes

struct  TQUE
 

Public Types

typedef QList< TQUEVQVVArrayVArray
 

Public Member Functions

 ReplyBlock (QThread::Priority priority=QThread::LowPriority, QObject *parent=0)
 Constructor.
 
virtual ~ReplyBlock ()
 Destructor.
 
void run ()
 Thread run or the process. More...
 
void ProcessThis (TQUE cmd, int mseconds=0)
 Sends a message to the thread via queing and threading. More...
 
void ProcessThis (int cmd, int mseconds=0)
 Sends a message to the thread via queing and threading.
 
virtual void UserProcess (TQUE &)
 User Process.
 
virtual void WakeMeUp (void)
 Called to wake up a thread so it can do something or exit.
 
- Public Member Functions inherited from VremThread
 VremThread (QObject *parent=0)
 Constructor.
 
bool cleanExit (int MaxdelayToTerminate_ms=10000)
 shutdown this thread cleanly, if it can it returns true, if fails return false if it needed to teminate More...
 
bool ContinueToRun (void)
 run should poll this event to determine clean shutdown
 

Protected Member Functions

void timerEvent (QTimerEvent *event)
 Timeout message, if waiting too long, a sender can tell the operation to timeout. More...
 

Detailed Description

The ReplyBlock class ReplyBlock reply block thread so it can be used again and again. This is quite a useful thread, it operates like QNX Reply blocking concept. Only running when someone tells it to. It handles all the signally and exits automatically when completed. Know what you are doing if you want to use this thread!

Member Function Documentation

◆ ProcessThis()

void ReplyBlock::ProcessThis ( TQUE  cmd,
int  mseconds = 0 
)

Sends a message to the thread via queing and threading.

send a message to the thread via queing and threading

◆ run()

void ReplyBlock::run ( )

Thread run or the process.

thread run or the process

List of awaiting threads

◆ timerEvent()

void ReplyBlock::timerEvent ( QTimerEvent *  event)
protected

Timeout message, if waiting too long, a sender can tell the operation to timeout.

break it our for debug

always kill


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