forked from vieter-v/vieter
chore: final read before merging
This commit is contained in:
parent
51df1874f5
commit
60cb91c18c
2 changed files with 4 additions and 4 deletions
|
|
@ -144,7 +144,9 @@ fn (mut q BuildJobQueue) pop_invalid(arch string) {
|
|||
// peek shows the first job for the given architecture that's ready to be
|
||||
// executed, if present.
|
||||
pub fn (mut q BuildJobQueue) peek(arch string) ?BuildJob {
|
||||
rlock q.mutex {
|
||||
// Even peek requires a write lock, because pop_invalid can modify the data
|
||||
// structure
|
||||
lock q.mutex {
|
||||
if arch !in q.queues {
|
||||
return none
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue