mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2025-05-31 00:51:37 +00:00
Fix load bug where exactly one image per thread would not get loaded
This commit is contained in:
parent
fc7093b959
commit
a2b18f1893
1 changed files with 4 additions and 2 deletions
|
@ -749,8 +749,10 @@ namespace CodeImp.DoomBuilder.Data
|
||||||
lock(syncobject)
|
lock(syncobject)
|
||||||
{
|
{
|
||||||
// Fetch next image to process
|
// Fetch next image to process
|
||||||
if(imageque.Count > 0) image = imageque.Dequeue();
|
if(imageque.Count > 0)
|
||||||
if (imageque.Count == 0) Monitor.Wait(syncobject);
|
image = imageque.Dequeue();
|
||||||
|
else
|
||||||
|
Monitor.Wait(syncobject);
|
||||||
}
|
}
|
||||||
|
|
||||||
image?.BackgroundLoadImage();
|
image?.BackgroundLoadImage();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue