Code::Blocks  SVN r11506
Public Member Functions | Private Attributes | List of all members
ParserThreadedTask Class Reference

a cbThreadedTask can be executed in cbThreadPool to do a lot of parsing jobs in the begining stage of the batch parsing. More...

#include <parserthreadedtask.h>

Inheritance diagram for ParserThreadedTask:
Collaboration diagram for ParserThreadedTask:

Public Member Functions

 ParserThreadedTask (Parser *parser, wxMutex &parserCS)
 
virtual int Execute ()
 Override this function with the task's job Return value doesn't matter. More...
 
- Public Member Functions inherited from cbThreadedTask
 cbThreadedTask ()
 cbThreadedTask ctor More...
 
virtual ~cbThreadedTask ()=0
 cbThreadedTask dtor More...
 
void Abort ()
 This function is called to tell the task to abort (check cbThreadPool::AbortAllTasks) More...
 

Private Attributes

Parserm_Parser
 
wxMutexm_ParserMutex
 a Parser object which contain TokenTree More...
 

Additional Inherited Members

- Protected Member Functions inherited from cbThreadedTask
bool TestDestroy () const
 Be sure to call this function often. If it returns true, quit your task quickly. More...
 
bool Aborted () const
 Same as TestDestroy() More...
 

Detailed Description

a cbThreadedTask can be executed in cbThreadPool to do a lot of parsing jobs in the begining stage of the batch parsing.

Here, the files and the macro definition are already prepared, so we put them in the thread pool

Definition at line 20 of file parserthreadedtask.h.

Constructor & Destructor Documentation

◆ ParserThreadedTask()

ParserThreadedTask::ParserThreadedTask ( Parser parser,
wxMutex parserCS 
)

Definition at line 58 of file parserthreadedtask.cpp.

Member Function Documentation

◆ Execute()

int ParserThreadedTask::Execute ( )
virtual

Member Data Documentation

◆ m_Parser

Parser* ParserThreadedTask::m_Parser
private

Definition at line 32 of file parserthreadedtask.h.

Referenced by Execute().

◆ m_ParserMutex

wxMutex& ParserThreadedTask::m_ParserMutex
private

a Parser object which contain TokenTree

Definition at line 33 of file parserthreadedtask.h.

Referenced by Execute().


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