1
0
mirror of https://github.com/wolfpld/tracy synced 2025-05-07 15:33:52 +00:00
Bartosz Taudul 91758423cd Optimize lock state combining.
There are four possible lock states:
1. Nothing
2. HasLock
3. HasBlockingLock
4. WaitLock

The previous switch was implementing the following state transition:

s\n| 1 | 2 | 3 | 4
---+---+---+---+---
 1 | 1 | 2 | 3 | 4
---+---+---+---+---
 2 | 2 | 2 | 3 | 4
---+---+---+---+---
 3 | 3 | 3 | 3 | 4
---+---+---+---+---
 4 | 4 | 4 | 4 | 4

As can be seen, the switch effectively searches for the highest state
possible. This change implements it as such.
2017-11-26 16:42:50 +01:00
..
2017-11-15 22:18:45 +01:00
2017-11-15 22:18:45 +01:00
2017-10-10 21:56:15 +02:00
2017-10-10 21:56:15 +02:00
2017-10-10 21:56:15 +02:00
2017-11-26 16:42:50 +01:00