From: Kaspar Rohrer <krohrer@student.ethz.ch>
To: Julien Moutinho <julien.moutinho@gmail.com>
Cc: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] Native multithreaded LablGTK2?
Date: Mon, 30 Jul 2007 10:01:47 +0200 [thread overview]
Message-ID: <93DE46B0-285F-4066-A1CA-0A3969C728B3@student.ethz.ch> (raw)
In-Reply-To: <20070730054047.GA11678@jiyu.gnu>
On 30.07.2007, at 07:40, Julien Moutinho wrote:
> Check the META.lablgtk2 file:
> $ ocamlfind query lablgtk2 -format "%A" -predicates native,mt
> lablgtk.cmxa gtkThread.cmx
>
> If you get this, lablgtk2 is not likely to be guilty.
Here's what I get, so I suppose lablgtk2 is not guilty:
> ocamlfind query lablgtk2 -format "%A" -predicates native,mt
lablgtk.cmxa lablglade.cmxa lablgnomecanvas.cmxa lablgnomeui.cmxa
lablpanel.cmxa gtkInit.cmx gtkThread.cmx
>
> For I have never used neither Omake nor Godi, cannot help more.
> Nonetheless, if I were you I would dive into Omake...
Hm, maybe the error is in how I use Omake. I'll look into.
>> PS: Currently the application is single threaded, but due to output
>> redirection using pipes, I get the occassional freeze. (Pipe gets
>> flooded!)
> Weird.
No, not at all. The redirection happens in the same thread, so if the
pipe buffer is full, all write operations will block. And because the
application is single threaded, the reader never gets a chance to
empty the pipe. Thus, freeze.
I'm piping stdout, because that's the only way I was able to redirect
stdout to a gtk text widget (using a GIOchannel: GMain.Io.*). If
anybody has a better idea, I'd be glad to hear it. I was originally
thinking of an out_channel that writes to a buffer instead of a
file, but the Ocaml standard library seems to be missing this
functionality. Or is it?
Anyway, thanks a lot for your help. I appreciate it.
next prev parent reply other threads:[~2007-07-30 8:01 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-29 19:16 Kaspar Rohrer
2007-07-30 5:40 ` [Caml-list] " Julien Moutinho
2007-07-30 8:01 ` Kaspar Rohrer [this message]
2007-07-30 11:57 ` Julien Moutinho
2007-07-30 13:22 ` Kaspar Rohrer
2007-07-30 8:22 ` Kaspar Rohrer
2007-07-30 10:01 ` Julien Moutinho
2007-07-30 11:31 ` Kaspar Rohrer
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=93DE46B0-285F-4066-A1CA-0A3969C728B3@student.ethz.ch \
--to=krohrer@student.ethz.ch \
--cc=caml-list@yquem.inria.fr \
--cc=julien.moutinho@gmail.com \
/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