Felipe Monteiro de Carvalho wrote:
> Hello,
> 
> I am writing bindings for DBus (interprocess communication) library,
> but I'm a little lost about how to create them. The procedural
> low-level code is already working.
> 
> Basically I can have one software that constantly scans the bus in a
> loop in search of messages, and another that sends messages. And it
> works.
> 
> Now, I would like to write a class to make the use of dbus easier. I
> would like to emit a signal when a message arrives, but I don't know
> how to deal with the need to periodical checking if a message arrive.

Maybe queuing them and leave it to the user program to poll is enough?
> 
> Should I create the binding class as a separate Thread that checks the
> bus? 
> Any other ideas?

Is there any relation to the async unit?
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to