| 72 | __device__ __forceinline__ BufferTracker() : current_state(0) {} |
| 73 | |
| 74 | __device__ __forceinline__ int get() |
| 75 | { |
| 76 | int return_val = current_state++; |
| 77 | current_state = (current_state == max ? 0 : current_state); |
| 78 | return return_val; |
| 79 | } |
| 80 | }; |
| 81 | |
| 82 | __device__ __forceinline__ uint32_t lane_id() |
no outgoing calls