| 200 | // } |
| 201 | |
| 202 | static void FreeJob(JobThreadContext* ctx, HJob hjob) |
| 203 | { |
| 204 | uint32_t generation = ToGeneration(hjob); |
| 205 | uint32_t index = ToIndex(hjob); |
| 206 | |
| 207 | JobItem& item = ctx->m_Items.Get(index); |
| 208 | assert(item.m_Generation == generation); |
| 209 | |
| 210 | RemoveChildFromParent(ctx, hjob); |
| 211 | |
| 212 | item.m_Generation = INVALID_INDEX; |
| 213 | item.m_Status = JOBSYSTEM_STATUS_FREE; |
| 214 | item.m_CancelRequested = 0; |
| 215 | |
| 216 | ctx->m_Items.Free(index, false); |
| 217 | } |
| 218 | |
| 219 | JobSystemResult JobSystemSetParent(HJobContext context, HJob hchild, HJob hparent) |
| 220 | { |
no test coverage detected