| 394 | } |
| 395 | |
| 396 | void JobSystem::Wait() |
| 397 | { |
| 398 | #if JOB_SYSTEM_ENABLED |
| 399 | PROFILE_CPU(); |
| 400 | ZoneColor(TracyWaitZoneColor); |
| 401 | |
| 402 | int64 numJobs = Platform::AtomicRead(&JobContextsCount); |
| 403 | while (numJobs > 0) |
| 404 | { |
| 405 | WaitMutex.Lock(); |
| 406 | WaitSignal.Wait(WaitMutex, 1); |
| 407 | WaitMutex.Unlock(); |
| 408 | |
| 409 | numJobs = Platform::AtomicRead(&JobContextsCount); |
| 410 | } |
| 411 | #endif |
| 412 | } |
| 413 | |
| 414 | void JobSystem::Wait(int64 label) |
| 415 | { |
no test coverage detected