File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ impl JobToken {
40
40
/// gives out tokens without exposing whether they're implicit tokens or tokens from jobserver.
41
41
/// Furthermore, instead of giving up job tokens, it keeps them around
42
42
/// for reuse if we know we're going to request another token after freeing the current one.
43
- pub ( crate ) struct JobTokenServer {
43
+ pub ( crate ) struct GlobalJobTokenServer {
44
44
helper : HelperThread ,
45
45
tx : Sender < Option < Acquired > > ,
46
46
rx : Receiver < Option < Acquired > > ,
@@ -60,7 +60,7 @@ impl JobTokenServer {
60
60
Ok ( Self { helper, tx, rx } )
61
61
}
62
62
63
- pub ( crate ) fn acquire ( & mut self ) -> JobToken {
63
+ pub ( crate ) fn acquire ( & self ) -> JobToken {
64
64
let token = if let Ok ( token) = self . rx . try_recv ( ) {
65
65
// Opportunistically check if there's a token that can be reused.
66
66
token
Original file line number Diff line number Diff line change @@ -1306,7 +1306,7 @@ impl Build {
1306
1306
}
1307
1307
1308
1308
// Limit our parallelism globally with a jobserver.
1309
- let mut tokens = crate :: job_token:: JobTokenServer :: new ( ) ?;
1309
+ let tokens = crate :: job_token:: JobTokenServer :: new ( ) ?;
1310
1310
1311
1311
// When compiling objects in parallel we do a few dirty tricks to speed
1312
1312
// things up:
You can’t perform that action at this time.
0 commit comments