top | up | prev | next

CompileQueue Class

Definition at line 2562 of Build.cpp

Constructors

CompileQueue(std::mutex* mtx_, const std::string& name_, bool& stop_, bool& ready_, int logStreamId_)

Member Functions

int Get()
void NotifyAll()
void Put(int compileUnitIndex)

Member Variables

std::condition_variable cond
int logStreamId
std::mutex* mtx
std::string name
std::list<int> queue
bool& ready
bool& stop

Constructor Details

CompileQueue Constructor

cmajor::build::CompileQueue::CompileQueue(std::mutex* mtx_, const std::string& name_, bool & stop_, bool & ready_, int logStreamId_)

Definition at line 2579 of Build.cpp :
2579 :
2580 mtx(mtx_)name(name_)stop(stop_)ready(ready_)logStreamId(logStreamId_)
2581 {
2582 }


Declaration at line 2565 of Build.cpp


Member Function Details

Get Member Function

int cmajor::build::CompileQueue::Get()

Definition at line 2591 of Build.cpp
Declaration at line 2567 of Build.cpp


NotifyAll Member Function

void cmajor::build::CompileQueue::NotifyAll()

Definition at line 2605 of Build.cpp :
2606 {
2607     cond.notify_all();
2608 }


Declaration at line 2568 of Build.cpp


Put Member Function

void cmajor::build::CompileQueue::Put(int compileUnitIndex)

Definition at line 2584 of Build.cpp :
2585 {
2586     std::lock_guard<std::mutex> lock(*mtx);
2587     queue.push_back(compileUnitIndex);
2588     cond.notify_one();
2589 }


Declaration at line 2566 of Build.cpp


top | up | prev | next