35#ifndef WORKLIST_H_INCLUDED
36#define WORKLIST_H_INCLUDED
63 virtual ~TWorklist() { }
68 std::lock_guard<std::mutex> hold (
mutex );
75 std::lock_guard<std::mutex> hold (
mutex );
Represents a single work item in the compilation worklist.
TWorkItem(const std::string &s)
Construct from a file name.
std::string resultsIndex
Index into the results.
std::string name
File name of the work item.
std::string results
Compilation results.
std::list< TWorkItem * > worklist
Queue of pending work items.
bool remove(TWorkItem *&item)
Remove and return the next work item. Returns false if empty.
int size()
Get the number of remaining work items.
bool empty()
Check whether the worklist is empty.
void add(TWorkItem *item)
Add a work item to the worklist.
std::mutex mutex
Mutex guarding the worklist.