[haiku-development] Re: Additional Functionality to BMessenger

  • From: Rene Gollent <anevilyak@xxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Wed, 29 May 2019 11:37:25 -0400

On Wed, May 29, 2019 at 11:34 AM Hamish Morrison <hamishm53@xxxxxxxxx> wrote:

Can't BMessenger already send to a particular thread? You give it a
BLooper to send to in its constructor.

Not when crossing team boundaries. Bear in mind, the BLooper
constructor is given a direct pointer to the looper, hence it's only
valid in the address space of the team in question.

Other than that though, why not just reuse the socketpair
implementation from other platforms? The less Haiku-specific code in
our port, the easier it is to keep it in sync with upstream.

I'd agree with this assessment honestly.

Regards,

Rene

Other related posts: