| 111 | } |
| 112 | |
| 113 | static JobItem* GetJobItem(JobThreadContext* ctx, HJob hjob) |
| 114 | { |
| 115 | uint32_t generation = ToGeneration(hjob); |
| 116 | uint32_t index = ToIndex(hjob); |
| 117 | JobItem* item = ctx->m_Items.GetPtr(index); |
| 118 | if (item == 0 || item->m_Generation != generation) |
| 119 | return 0; |
| 120 | return item; |
| 121 | } |
| 122 | |
| 123 | static JobItem* CheckItem(JobThreadContext* ctx, HJob hjob) |
| 124 | { |
no test coverage detected