Commit 2c85b77
committed
Fix deadlock in resizing from resetting the fence too early
Because acquiring the swapchain image index may cause drawFrame to return early,
it was possible to cause the next vkWaitForFences to deadlock. By delaying fence
resetting till after acquiring, it prevents the deadlock.1 parent 911288e commit 2c85b77
15 files changed
Lines changed: 47 additions & 14 deletions
File tree
- code
- en/03_Drawing_a_triangle
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
671 | 671 | | |
672 | 672 | | |
673 | 673 | | |
674 | | - | |
675 | 674 | | |
676 | 675 | | |
677 | 676 | | |
| |||
683 | 682 | | |
684 | 683 | | |
685 | 684 | | |
| 685 | + | |
686 | 686 | | |
687 | 687 | | |
688 | 688 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
716 | 716 | | |
717 | 717 | | |
718 | 718 | | |
719 | | - | |
720 | 719 | | |
721 | 720 | | |
722 | 721 | | |
| |||
728 | 727 | | |
729 | 728 | | |
730 | 729 | | |
| 730 | + | |
731 | 731 | | |
732 | 732 | | |
733 | 733 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
772 | 772 | | |
773 | 773 | | |
774 | 774 | | |
775 | | - | |
776 | 775 | | |
777 | 776 | | |
778 | 777 | | |
| |||
784 | 783 | | |
785 | 784 | | |
786 | 785 | | |
| 786 | + | |
787 | 787 | | |
788 | 788 | | |
789 | 789 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
820 | 820 | | |
821 | 821 | | |
822 | 822 | | |
823 | | - | |
824 | 823 | | |
825 | 824 | | |
826 | 825 | | |
| |||
832 | 831 | | |
833 | 832 | | |
834 | 833 | | |
| 834 | + | |
835 | 835 | | |
836 | 836 | | |
837 | 837 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
853 | 853 | | |
854 | 854 | | |
855 | 855 | | |
856 | | - | |
857 | 856 | | |
858 | 857 | | |
859 | 858 | | |
| |||
865 | 864 | | |
866 | 865 | | |
867 | 866 | | |
| 867 | + | |
868 | 868 | | |
869 | 869 | | |
870 | 870 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
922 | 922 | | |
923 | 923 | | |
924 | 924 | | |
925 | | - | |
926 | 925 | | |
927 | 926 | | |
928 | 927 | | |
| |||
936 | 935 | | |
937 | 936 | | |
938 | 937 | | |
| 938 | + | |
939 | 939 | | |
940 | 940 | | |
941 | 941 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
980 | 980 | | |
981 | 981 | | |
982 | 982 | | |
983 | | - | |
984 | 983 | | |
985 | 984 | | |
986 | 985 | | |
| |||
994 | 993 | | |
995 | 994 | | |
996 | 995 | | |
| 996 | + | |
997 | 997 | | |
998 | 998 | | |
999 | 999 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1135 | 1135 | | |
1136 | 1136 | | |
1137 | 1137 | | |
1138 | | - | |
1139 | 1138 | | |
1140 | 1139 | | |
1141 | 1140 | | |
| |||
1149 | 1148 | | |
1150 | 1149 | | |
1151 | 1150 | | |
| 1151 | + | |
1152 | 1152 | | |
1153 | 1153 | | |
1154 | 1154 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1173 | 1173 | | |
1174 | 1174 | | |
1175 | 1175 | | |
1176 | | - | |
1177 | 1176 | | |
1178 | 1177 | | |
1179 | 1178 | | |
| |||
1187 | 1186 | | |
1188 | 1187 | | |
1189 | 1188 | | |
| 1189 | + | |
1190 | 1190 | | |
1191 | 1191 | | |
1192 | 1192 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1203 | 1203 | | |
1204 | 1204 | | |
1205 | 1205 | | |
1206 | | - | |
1207 | 1206 | | |
1208 | 1207 | | |
1209 | 1208 | | |
| |||
1217 | 1216 | | |
1218 | 1217 | | |
1219 | 1218 | | |
| 1219 | + | |
1220 | 1220 | | |
1221 | 1221 | | |
1222 | 1222 | | |
| |||
0 commit comments