question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Win32Platform.Signal should respect DispatcherPriority parameter

See original GitHub issue

Looks like it could easily be encoded in lParam.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
kekekekscommented, Aug 31, 2021

I guess I could suggest to write your own queue. Something like

class CallbackQueue
{
    bool _posted;
    Queue<Action> _actions = new();
    
    public void Post(Action a)
    {
         _actions.Add(a);
         if(!_posted)
         {
             _posted  = true;
             DispatcherTimer.RunOnce(() => {
                      _posted = false;
                      while(_actions.Count > 0)
                          _actions.Dequeue()();
             }, TimeSpan.FromMilliseconds(1));
         }
    }
}
1reaction
kekekekscommented, Aug 19, 2021

DispatcherTimer.RunOnce with 1ms timeout.

Read more comments on GitHub >

github_iconTop Results From Across the Web

DispatcherPriority Enum (System.Windows.Threading)
Describes the priorities at which operations can be invoked by way of the Dispatcher.
Read more >
wpf.pdf
IF PROFESSIONAL ASSISTANCE IS. REQUIRED, THE SERVICES OF A COMPETENT PROFESSIONAL PERSON SHOULD BE SOUGHT. NEITHER THE PUBLISHER NOR THE AUTHOR SHALL BE...
Read more >
Professional Wpf Programming: .net Development With ...
E-Book Overview. Professional WPF Programming. If you want to learn how to build killer user interfaces for Windows and the web, then this...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found