Lisp HUG Maillist Archive

capi interfaces as actors

I have a handful of capi interfaces and I need them to communicate 
through mp:mailboxes to each other, like GUI actors.

At present, I create a second process for each interface which runs the 
"actor" code and calls capi:apply-in-pane-process to update the interfaces.

Given that interfaces are themselves processes, can I do all of this 
without creating the second set of processes?

Most of the interfaces need to display themselves, then call 
mp:mailbox-wait-for-event on their mailbox.  I haven't figured out how 
to do this using only the interfaces' processes (it may very well be 
that I'm missing something obvious).  Any ideas would be welcome.

thanks
pt

_______________________________________________
Lisp Hug - the mailing list for LispWorks users
lisp-hug@lispworks.com
http://www.lispworks.com/support/lisp-hug.html


Re: capi interfaces as actors


* Paul Tarvydas <51BA5EC9.90904@gmail.com> :
Wrote on Thu, 13 Jun 2013 20:07:37 -0400:

| Given that interfaces are themselves processes, can I do all of this
| without creating the second set of processes?
|
| Most of the interfaces need to display themselves, then call
| mp:mailbox-wait-for-event on their mailbox.  I haven't figured out how
| to do this using only the interfaces' processes (it may very well be
| that I'm missing something obvious).  Any ideas would be welcome.

Hello, This seems to be the flip side of the of "reactive" problem coin
I faced, and mentioned on here on Aug 30 2011, in
<permalink.gmane.org/gmane.lisp.lispworks.general/11216>

I had wished for some way to hook in to the interface's process, a hook
that would get run at some point in the gui loop, where you could run
your code thunks here.  Would the availability of such a mechanism help
your problem?  [I still haven't solved that problem] --- Madhu

_______________________________________________
Lisp Hug - the mailing list for LispWorks users
lisp-hug@lispworks.com
http://www.lispworks.com/support/lisp-hug.html


Re: capi interfaces as actors

Unable to parse email body. Email id is 12281

Updated at: 2020-12-10 08:35 UTC