Lines Matching refs:buf
191 static bool barrier_write(Barrier *b, uint64_t buf) {
200 len = write(b->me, &buf, sizeof(buf));
203 if (len != sizeof(buf))
207 if (buf >= (uint64_t)BARRIER_ABORTION) {
213 b->barriers += buf;
239 uint64_t buf;
252 len = read(b->them, &buf, sizeof(buf));
256 if (len != sizeof(buf))
264 buf = BARRIER_ABORTION;
269 if (buf >= (uint64_t)BARRIER_ABORTION) {
275 b->barriers -= buf;