[haiku-3rdparty-dev] Re: Problem sending/receiving app defined msgs

  • From: "Stephan Assmus" <superstippi@xxxxxx>
  • To: haiku-3rdparty-dev@xxxxxxxxxxxxx
  • Date: Sun, 05 Dec 2010 22:48:37 +0100

Hi,

Von: "Axel Dörfler" <axeld@xxxxxxxxxxxxxxxx>
> Stephan Aßmus <superstippi@xxxxxx> wrote:
> > Am Sonntag, den 05.12.2010, 14:15 +0100 schrieb Axel Dörfler:
> > > Using the window as pointer is indeed not thread-safe - creating a 
> > > BMessenger out of it is, though.
> > I remember having traced this code before and I am pretty sure I have
> > found out that invoking PostMessage() on a stale BLooper pointer is
> > save. Making a BMessenger from a stale BLooper pointer boils down to 
> > the
> > same code behind the scenes. On the one hand I can't trust my memory 
> > too
> > well these days, but on the other hand I am too lazy to trace the 
> > code
> > again. So I'll leave that up to you to prove me wrong, if you don't
> > believe me. :-)
> 
> I know you are right, but if you have any further questions, you just 
> have to read through Ingo's mail who goes into detail of everything, 
> and is completely correct, too :-)

Yes I saw that mail and was happy about the insights contained. I just hope 
that when you wrote your initial reply you hadn't seen the mail I already 
wrote. :-P

Best regards,
-Stephan

Other related posts: