Running on threads

Greg Bennett gwbennett at sentex.ca
Mon Jul 2 15:57:53 UTC 2018


 From Greg Bennett, running 64bit Mint 18.2 and sbcl 1.4.0 [should fix 
that!]


I am trying to port a project using mcclim as the graphics machine.

Using code from CLIM User Guide V2.2.2 P19:

<START of CODE>

(in-package :clim-user)

(define-application-frame test ()
   ()
   (:panes
    (display :application))
   (:layouts
    (default display)))

(define-test-command (com-quit :menu t) ()
   (frame-exit *application-frame*))

(defvar *test-frame* nil)

(defun test ()
   (flet ((run ()
           (let ((frame (make-application-frame 'test)))
              (setq *test-frame* frame) (run-frame-top-level frame))))
    (sb-thread::make-thread #'run :name "test")
*test-frame*))

<END of CODE>

and then (test), I can get a mcclim window in which I can draw while 
still having the sbcl
listener alive.

I'd like to learn how to create other instances of application frames on 
the same thread
[named "test" in this case] Is it as simple as invoking 
clim:run-frame-toplevel again, for
instance ?

If there are pointers to mcclim's handling of threads, I'd be happy to 
learn of them.

Thanks for advice and assistance,
Cheers /GB

------------------------------------------------------------------------------ 

Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Sbcl-devel mailing list
Sbcl-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sbcl-devel

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/mcclim-devel/attachments/20180702/f137dba0/attachment.html>


More information about the mcclim-devel mailing list