From: Guillaume Yziquel <guillaume.yziquel@citycable.ch>
To: OCaml List <caml-list@inria.fr>
Subject: Wrapping C code using pthread.
Date: Fri, 25 Dec 2009 21:57:21 +0100 [thread overview]
Message-ID: <4B352731.2060306@citycable.ch> (raw)
Hello.
I'm currently trying to wrap up together a C interface for the MonetDB5
database system. I'm getting quite a lot of segfaults (a lot of which
come from MonetDB itself), and I'm therefore wondering the following
about pthreads and OCaml:
The server is started via a pthread:
pthread_create(&sqlthread, NULL, start_sql_server, (void *) server);
and I would like to know what kind of things I should look at with
C-side pthreads in order to avoid segfaults...
All the best,
--
Guillaume Yziquel
http://yziquel.homelinux.org/
next reply other threads:[~2009-12-25 20:57 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-25 20:57 Guillaume Yziquel [this message]
2009-12-27 9:42 ` [Caml-list] " ygrek
2009-12-27 12:19 ` Guillaume Yziquel
2009-12-27 21:27 ` ygrek
2009-12-27 21:33 ` Guillaume Yziquel
2009-12-29 3:39 ` Jake Donham
2009-12-30 23:50 ` Guillaume Yziquel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4B352731.2060306@citycable.ch \
--to=guillaume.yziquel@citycable.ch \
--cc=caml-list@inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox