Commit b4e0fbf
authored
Improve SDL_Delay and add testing. NFC (#25973)
- Cleanup implemenation of SDL_Delay
- Add testing of SDL_Timer/SDL_Delay under SDL1
- Add testing of SDL_Timer/SDL_Delay when running on pthread
- Rename test_sdl2_timer.c -> test_sdl_timer.c since it works with both
SDL1 and SDL2
- Avoid taking the address of stack locals in test_sdl_timer.c.
Depends on #259711 parent bbf552e commit b4e0fbf
File tree
4 files changed
+28
-11
lines changed- src/lib
- test
- browser
- codesize
4 files changed
+28
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1744 | 1744 | | |
1745 | 1745 | | |
1746 | 1746 | | |
1747 | | - | |
1748 | | - | |
1749 | | - | |
| 1747 | + | |
1750 | 1748 | | |
| 1749 | + | |
| 1750 | + | |
| 1751 | + | |
1751 | 1752 | | |
1752 | | - | |
| 1753 | + | |
| 1754 | + | |
| 1755 | + | |
1753 | 1756 | | |
1754 | 1757 | | |
1755 | 1758 | | |
| |||
Lines changed: 13 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
11 | 15 | | |
| 16 | + | |
12 | 17 | | |
13 | 18 | | |
14 | 19 | | |
| |||
25 | 30 | | |
26 | 31 | | |
27 | 32 | | |
28 | | - | |
| 33 | + | |
| 34 | + | |
29 | 35 | | |
30 | 36 | | |
31 | 37 | | |
| |||
36 | 42 | | |
37 | 43 | | |
38 | 44 | | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | 45 | | |
43 | 46 | | |
44 | 47 | | |
45 | 48 | | |
46 | 49 | | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
47 | 56 | | |
48 | 57 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3055 | 3055 | | |
3056 | 3056 | | |
3057 | 3057 | | |
| 3058 | + | |
| 3059 | + | |
| 3060 | + | |
| 3061 | + | |
| 3062 | + | |
3058 | 3063 | | |
3059 | | - | |
| 3064 | + | |
3060 | 3065 | | |
3061 | 3066 | | |
3062 | 3067 | | |
| |||
0 commit comments