Release 0.5.0: release candidate 1 #316

Merged
Jef Roosens merged 58 commits from release-0.5.0-rc.1 into main 2022-12-17 14:13:06 +01:00
2 changed files with 4 additions and 4 deletions
Showing only changes of commit 60cb91c18c - Show all commits

View file

@ -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
}

View file

@ -36,9 +36,7 @@ fn (mut app App) init_job_queue() ! {
for targets.len > 0 {
for target in targets {
for arch in target.arch {
app.job_queue.insert(target: target, arch: arch.value)!
}
app.job_queue.insert_all(target)!
}
i += 25