Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions src/bls/ThreadPool.zig
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,6 @@ const VerifyMultiWorkItem = struct {
const self: *VerifyMultiWorkItem = @fieldParentPtr("base", base_item);
const job = self.job;

// Each worker gets its own pairing buffer on the stack
var buf: PairingBuf = .{};
var pairing = Pairing.init(&buf.data, true, job.dst);

Expand All @@ -210,7 +209,7 @@ const VerifyMultiWorkItem = struct {
while (true) {
const i = job.counter.fetchAdd(1, .monotonic);
if (i >= n_elems) break;
if (job.err_flag.load(.acquire)) break;
if (job.err_flag.load(.monotonic)) break;

did_work = true;

Expand Down Expand Up @@ -344,7 +343,7 @@ const AggVerifyWorkItem = struct {
while (true) {
const i = job.counter.fetchAdd(1, .monotonic);
if (i >= job.n_elems) break;
if (job.err_flag.load(.acquire)) break;
if (job.err_flag.load(.monotonic)) break;

did_work = true;

Expand Down
Loading