[haiku-development] Re: A BMessage w/o a BApplication?

  • From: fano il primo <fanoilprimo@xxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Sun, 29 Jan 2012 17:09:08 +0100

So a BLooper can be instantiated in a thread, too?
But it's because I'm part of Haiku GUI application (there's a be->app()
declared in main())?

If I've a commandline application but I want to have all the BMessage
thing, I could declare a BLooper and I'm done?

So why it's not done in Haiku sources?
Too much overhead to use a BLooper in a thread?
Or hhere's some other reasoning do NOT do this?

It will not be useful to have a wrapper class (part of the support kit or
maybe kernel kit)) already done for this... a more "*hakuish*" thread let
me say?

2012/1/29 Jérôme Duval <korli@xxxxxxxxxxxxxxxx>

> Hi,
>
> 2012/1/29 fano il primo <fanoilprimo@xxxxxxxxx>:
> > It's possible to have BMessage w/o BApllication? It's possible to
> separate
> > this 2 things? For my point of view they are NOT the same! If not a
> > BSimpleMessage totally compatible with BMessage in Support Kit?
> > More useful, maybe, a wrapper class for a thread with a sort of
> (B)message
> > loop? A BWorker let me say?
>
> I don't yet understand your target usage. BMessenger can be used to
> send BMessage, for instance be_app_messenger will send messages to
> be_app. What's the problem with that? A BLooper can be implemented if
> you want to receive and do some work in another thread that the
> application main loop.
>
> Bye,
> Jérôme
>
>

Other related posts: