Code::Blocks
SVN r11506
|
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>
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 | |
Parser * | m_Parser |
wxMutex & | m_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... | |
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.
Definition at line 58 of file parserthreadedtask.cpp.
|
virtual |
Override this function with the task's job Return value doesn't matter.
Implements cbThreadedTask.
Definition at line 64 of file parserthreadedtask.cpp.
References _T, CC_LOCKER_TRACK_P_MTX_LOCK, CC_LOCKER_TRACK_P_MTX_UNLOCK, Parser::ClearPredefinedMacros(), wxString::IsEmpty(), Parser::m_BatchParseFiles, Parser::m_IgnoreThreadEvents, Parser::m_IsFirstBatch, Parser::m_IsParsing, m_Parser, m_ParserMutex, Parser::m_PredefinedMacros, Parser::Parse(), Parser::ParseBuffer(), and TRACE.
|
private |
Definition at line 32 of file parserthreadedtask.h.
Referenced by Execute().
|
private |
a Parser object which contain TokenTree
Definition at line 33 of file parserthreadedtask.h.
Referenced by Execute().