Add infrastructure for threading support.

This commit is contained in:
Ian Lance Taylor 2007-10-17 06:24:50 +00:00
parent ae326da8eb
commit fe9a4c1201
14 changed files with 292 additions and 33 deletions

View file

@ -47,7 +47,7 @@ class Task;
class Workqueue;
// Some tasks require access to shared data structures, such as the
// symbol table. Some tasks must be executed in a particular error,
// symbol table. Some tasks must be executed in a particular order,
// such as reading input file symbol tables--if we see foo.o -llib, we
// have to read the symbols for foo.o before we read the ones for
// -llib. To implement this safely and efficiently, we use tokens.
@ -391,6 +391,10 @@ class Workqueue
void
cleared_blocker();
// Set the thread count.
void
set_thread_count(int);
private:
// This class can not be copied.
Workqueue(const Workqueue&);