From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Nic Ferrier Newsgroups: gmane.lisp.guile.devel Subject: scm_thread_create issues Date: 28 Sep 2003 23:30:55 +0100 Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Message-ID: <87wubsczq8.fsf@kanga.tapsellferrier.co.uk> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1064788547 22206 80.91.224.253 (28 Sep 2003 22:35:47 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 28 Sep 2003 22:35:47 +0000 (UTC) Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Mon Sep 29 00:35:45 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1A3k8n-000316-00 for ; Mon, 29 Sep 2003 00:35:45 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.22) id 1A3k5p-000073-Nk for guile-devel@m.gmane.org; Sun, 28 Sep 2003 18:32:41 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22) id 1A3k5g-00006l-9k for guile-devel@gnu.org; Sun, 28 Sep 2003 18:32:32 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22) id 1A3k5e-00006V-NJ for guile-devel@gnu.org; Sun, 28 Sep 2003 18:32:31 -0400 Original-Received: from [217.34.135.17] (helo=tf1.tapsellferrier.co.uk) by monty-python.gnu.org with esmtp (Exim 4.22) id 1A3k4D-0008T0-Ms for guile-devel@gnu.org; Sun, 28 Sep 2003 18:31:01 -0400 Original-Received: from host217-34-135-22.in-addr.btopenworld.com ([217.34.135.22] helo=kanga.tapsellferrier.co.uk) by tf1.tapsellferrier.co.uk with esmtp (Exim 3.35 #1 (Debian)) id 1A3k3H-00054p-00; Sun, 28 Sep 2003 23:30:03 +0100 Original-Received: from localhost ([127.0.0.1] helo=kanga.tapsellferrier.co.uk ident=nferrier) by kanga.tapsellferrier.co.uk with esmtp (Exim 3.35 #1 (Debian)) id 1A3k47-0001nk-00; Sun, 28 Sep 2003 23:30:56 +0100 Original-To: guile-devel@gnu.org Original-Lines: 35 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Developers list for Guile, the GNU extensibility library List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.lisp.guile.devel:2825 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:2825 So, I'm trying to write a multithreaded server with Guile (where the threads need to talk to C). Man, is it difficult. I'm using devel (because I want real threads and the app will target linux kernel 2.6 pthreads) and so I thought I'd just be able to use the plugin interface. In the documentation it says: int scm_thread_create ( scm_t_thread *t, void (*proc)(void *), void *data) But when I try to use it I get a sym error. Do a grep-find on the guile-devel source and I can only find 2 places it's mentioned in the code; 1 is a comment about changing scm_spawn_thread to scm_thread_create and the other is in the null-threads provider. So, does scm_thread_create really not exist yet? If not, can someone tell me about scm_spawn_thread? It's signature is: SCM_API SCM scm_spawn_thread (scm_t_catch_body body, void *body_data, scm_t_catch_handler handler, void *handler_data); Can anyone tell me what body, body_data, handler and handler_data are supposed to _be_? Nic Ferrier _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://mail.gnu.org/mailman/listinfo/guile-devel