Commit 34684ee3 authored by Nils Goroll's avatar Nils Goroll

reduce code within the vbp_mtx critical section insignificantly

We could also move the VSL() outside if we copied dir->vcl_name
parent 96c9ea21
......@@ -158,18 +158,18 @@ VBP_Update_Backend(struct vbp_target *vt)
CHECK_OBJ_NOTNULL(vt, VBP_TARGET_MAGIC);
#define BITMAP(n, c, t, b) \
bits[i++] = (vt->n & 1) ? c : '-';
#include "tbl/backend_poll.h"
bits[i] = '\0';
assert(i < sizeof bits);
Lck_Lock(&vbp_mtx);
if (vt->backend == NULL) {
Lck_Unlock(&vbp_mtx);
return;
}
#define BITMAP(n, c, t, b) \
bits[i++] = (vt->n & 1) ? c : '-';
#include "tbl/backend_poll.h"
bits[i] = '\0';
assert(i < sizeof bits);
dir = vt->backend->director;
if (dir == NULL) {
Lck_Unlock(&vbp_mtx);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment