mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2025-05-30 00:21:55 +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)
|
||||
{
|
||||
// Fetch next image to process
|
||||
if(imageque.Count > 0) image = imageque.Dequeue();
|
||||
if (imageque.Count == 0) Monitor.Wait(syncobject);
|
||||
if(imageque.Count > 0)
|
||||
image = imageque.Dequeue();
|
||||
else
|
||||
Monitor.Wait(syncobject);
|
||||
}
|
||||
|
||||
image?.BackgroundLoadImage();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue