guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

c, threads and guile


From: Nic Ferrier
Subject: c, threads and guile
Date: 26 Sep 2003 22:08:07 +0100

Does anyone know if it's possible to use C to init guile and then call
into scheme from multiple threads within the C program?

eg:

  void main()
    init-guile();
    scm_primitive_load("somefile.scm");
    for (i=0; i < 20; i++) 
      make-thread(handler);


  void handler ()
    scm_eval("(some-proc-defined-in-somefile)");


I'd like to be able to do this, I recognize the above is a bit hairy
but maybe there is a legitimate way to do this?

     

-- 
Nic Ferrier
http://www.tapsellferrier.co.uk





reply via email to

[Prev in Thread] Current Thread [Next in Thread]