top | up | prev | next

ProjectQueue Class

Definition at line 3275 of Build.cpp

Constructors

ProjectQueue(bool& stop_, const std::string& name_, std::mutex* mtx_)

Member Functions

Project* Get()
void Put(Project* project)
void Stop()

Member Variables

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

Constructor Details

ProjectQueue Constructor

cmajor::build::ProjectQueue::ProjectQueue(bool & stop_, const std::string& name_, std::mutex* mtx_)

Definition at line 3291 of Build.cpp :
3291 : stop(stop_)name(name_)mtx(mtx_)
3292 {
3293 }


Declaration at line 3278 of Build.cpp


Member Function Details

Get Member Function

Project * cmajor::build::ProjectQueue::Get()

Definition at line 3311 of Build.cpp
Declaration at line 3280 of Build.cpp

Calls: sngcm::ast::Project::Name


Put Member Function

void cmajor::build::ProjectQueue::Put(Project * project)

Definition at line 3295 of Build.cpp
Declaration at line 3279 of Build.cpp

Calls: sngcm::ast::Project::Name


Stop Member Function

void cmajor::build::ProjectQueue::Stop()

Definition at line 3337 of Build.cpp :
3338 {
3339     stop = true;
3340     cond.notify_all();
3341 }


Declaration at line 3281 of Build.cpp


top | up | prev | next