From: Stalkern 2 <stalkern2@tin.it>
To: caml-list@inria.fr
Subject: Re: [Caml-list] Ocamlex/ocamlyacc breakage?
Date: Wed, 9 Apr 2003 01:20:56 +0200 [thread overview]
Message-ID: <200304090120.56363.stalkern2@tin.it> (raw)
In-Reply-To: <20030408180339.B73157F4D@lobus.fungible.com>
Il Tuesday 08 April 2003 20:02, Tim Freeman ha scritto:
> Use mutexes, perhaps.
>
> The functions in the Parsing module don't take parameters that
> indicate which parse you're working with, so I wouldn't be at all
> surprised if parsing is not reentrant.
Thank you Tim.
I've tried out just to read and print the result, without parsing anything.
If I just start a bunch of readers,
GTK and stdout freeze;
if I have Unix.fork parents wait for Unix.fork reading children,
readers show that they can't read everything to the end but stop at random
points,
and only GTK drawing areas connected to expose events freeze.
In a way, it looks like callbacks from a "imperative/stiff" GTK button stings
the program, breaking the integrity of the whole "functional/elastic"
program. I wonder what is the way to control this interaction and queue up
callbacks execution without opening severe breaches like incomplete reading.
BTW how it comes that GTK areas exposure is broken by a Unix.wait in another
part of the program? Shall I set an independent thread for the area
interested by the Unix.wait?
I am getting mad with this. I'd like to have a "central square" that commands
start from and to which results come back only when they are over and done.
I'll try to set up a thread more for file parsing, but I need to understand
how to set up two-ways (request-reply) channels between threads (IIRC, so far
I've seen only one-way channels).
Thanks again. I'll go on making more trials.
Ernesto
-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
next prev parent reply other threads:[~2003-04-08 23:11 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-04-08 11:02 Stalkern 2
2003-04-08 16:08 ` Stalkern 2
2003-04-08 18:02 ` Tim Freeman
2003-04-08 23:20 ` Stalkern 2 [this message]
2003-04-09 0:16 ` Jacques Garrigue
2003-04-13 14:33 ` John Max Skaller
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=200304090120.56363.stalkern2@tin.it \
--to=stalkern2@tin.it \
--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