mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2025-02-16 21:08:28 +00:00
...
This commit is contained in:
parent
5ec8ad8890
commit
86c1165777
1 changed files with 2 additions and 0 deletions
|
@ -211,6 +211,8 @@ namespace SanAndreasUnity.Behaviours
|
|||
|
||||
public long GetNumJobsPendingApproximately()
|
||||
{
|
||||
ThreadHelper.ThrowIfNotOnMainThread();
|
||||
|
||||
// this is not done in a critical section: calling Count on 2 multithreaded collections
|
||||
return (long)_threadParameters.jobs.Count + (long)_threadParameters.processedJobs.Count + (long)_processedJobsBuffer.Count;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue