Determines if this process needs to wait for ownership of the buffer. We invert the condition on one of the processes to indicate that if one process owns the buffer then the other does not.
| 160 | /// invert the condition on one of the processes to indicate that if one |
| 161 | /// process owns the buffer then the other does not. |
| 162 | RPC_ATTRS static bool buffer_unavailable(uint32_t in, uint32_t out) { |
| 163 | bool cond = in != out; |
| 164 | return Invert ? !cond : cond; |
| 165 | } |
| 166 | |
| 167 | /// Attempt to claim the lock at index. Return true on lock taken. |
| 168 | /// lane_mask is a bitmap of the threads in the warp that would hold the |