Using a cursor for safe cross-thread writes when checking gates across CPU cores.