aboutsummaryrefslogtreecommitdiff
path: root/bbot/agent/agent.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2019-01-21 13:14:19 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2019-01-21 13:14:19 +0200
commit5662e66dcdbf1af13b4ccf7352f3e435c1baf597 (patch)
tree9061f17ed5f7edc91d0d30b10aaa1c0eda2d63cf /bbot/agent/agent.hxx
parent432bc29a5c4b24b24e5c33feb34d38153978b718 (diff)
Add support for running multiple instances of agent for same toolchain
This allows us to perform multiple bootstraps/builds in parallel. Note that each machine can only be used by a single instance so it doesn't make sense to have more instances than machines.
Diffstat (limited to 'bbot/agent/agent.hxx')
-rw-r--r--bbot/agent/agent.hxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/bbot/agent/agent.hxx b/bbot/agent/agent.hxx
index e5447dd..fd24151 100644
--- a/bbot/agent/agent.hxx
+++ b/bbot/agent/agent.hxx
@@ -23,10 +23,14 @@ namespace bbot
extern standard_version tc_ver; // Toolchain version.
extern string tc_id; // Toolchain id.
+ extern uint16_t inst; // Instance number.
+
extern string hname; // Our host name.
extern uid_t uid; // Our effective user id.
extern string uname; // Our effective user name.
+ extern uint16_t offset; // Agent offset.
+
// Random number generator (currently not MT-safe and limited to RAND_MAX).
//
size_t