[Mono-osx] Mono OSX thread
Miguel de Icaza
miguel at novell.com
Mon Jan 3 09:06:39 EST 2011
This looks like something is blocking on the event queue, preventing
events from being dispatched. I know this was a bug a few years ago, but I
thought we had fixed this.
On Mon, Jan 3, 2011 at 8:31 AM, sebi77 <
balazs.sebestyen at webcamlaboratory.com> wrote:
> When I move the mouse over the window, the program runs much faster (cc. 3
> times). (Or refreshes more frequently). This is a real time webcam
> application running on a MacBook. On Windows works perfectly. The code:
> Thread t = new Thread(Foo);
> t.Priority = ThreadPriority.Highest; // doesn't do anything,
> delegate void SetInt(int k);
> void Foo()
> int k = 0;
> while (true)
> BeginInvoke(new SetInt(Bar), k);
> void Bar(int k)
> System.Fonts.DefaultFont, Brushes.Red, 0, 0);
> The real code is a bit more complicated, eg. watches reentrance in Bar(). I
> know that Thread.Priority is not implemented in Mono, but must be a
> solution, otherwise every real-time application would be unusable in
> Mono+OSX. I don't want extra priority for my app, just as much as it has
> when the mouse is moving.
> View this message in context:
> Sent from the Mono - OSX mailing list archive at Nabble.com.
> Mono-osx mailing list
> Mono-osx at lists.ximian.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Mono-osx