1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-16 15:24:10 +02:00

Improvements to emit markers on emits only in specialized types

This commit is contained in:
Brian Fiete 2022-05-02 07:48:29 -07:00
parent 01112c54fe
commit 5271f5e2fd
14 changed files with 342 additions and 68 deletions

View file

@ -13,9 +13,16 @@ namespace IDE.Compiler
{
public abstract class CompilerBase : CommandQueueManager
{
public int32 mResolveAllWait;
public enum ViewRefreshKind
{
None,
Collapse,
FullRefresh
}
public int32 mResolveAllWait;
protected List<String> mQueuedOutput = new List<String>() ~ DeleteContainerAndItems!(_);
public bool mWantsActiveViewRefresh;
public ViewRefreshKind mWantsActiveViewRefresh;
public volatile int32 mThreadYieldCount = 0; // Whether our thread wants to be yielded to, and for how many ticks
@ -157,10 +164,10 @@ namespace IDE.Compiler
{
CheckThreadDone();
if (mWantsActiveViewRefresh)
if (mWantsActiveViewRefresh != .None)
{
IDEApp.sApp.RefreshVisibleViews();
mWantsActiveViewRefresh = false;
mWantsActiveViewRefresh = .None;
}
if (mThreadYieldCount > 0)