mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2024-11-22 12:03:04 +00:00
...
This commit is contained in:
parent
86c1165777
commit
32c3504a27
1 changed files with 2 additions and 2 deletions
|
@ -67,7 +67,7 @@ namespace SanAndreasUnity.Behaviours
|
|||
private readonly ThreadParameters _threadParameters = new ThreadParameters();
|
||||
private readonly Queue<Job<object>> _processedJobsBuffer = new Queue<Job<object>>(256);
|
||||
|
||||
private static long s_lastJobId = 1;
|
||||
private static long s_lastJobId = 0;
|
||||
private static readonly object s_lastJobIdLockObject = new object();
|
||||
|
||||
private readonly Stopwatch _stopwatch = new Stopwatch();
|
||||
|
@ -205,7 +205,7 @@ namespace SanAndreasUnity.Behaviours
|
|||
{
|
||||
lock (s_lastJobIdLockObject)
|
||||
{
|
||||
return s_lastJobId++;
|
||||
return ++s_lastJobId;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue