Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] Two severe limitations in Graphics module
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Berke Durak <berke@a...>
Subject: [Caml-list] Graphics and Thread (was: Two severe limitations in Graphics module)
On Thu, Aug 29, 2002 at 08:55:17PM +0200, Michaël Grünewald wrote:
> Berke Durak <berke@altern.org> writes:
> 
> > On Wed, Aug 28, 2002 at 08:06:42AM +0200, Michaël Grünewald wrote:
> > > 1/You may have two threads, the first will watch the keyboard
> > > (wait_next_event), the second will update puzzle tiles positions, both will
> > > send events to your main loop, that will process these events.
> > 
> > I will try to do this, thanks. I just tried ocamlsdl (I get a weird
> > relocation error at exit) and ocamlsvga (my S3 card isn't fully
> > supported), so I have no other choice.
> 
> This is just an idea :)

Hmm, I've just tried it, it doesn't work, seems that Thread and Graphics
don't mix very well, if one thread calls Graphics.wait_next_event, others
get blocked too. I'm recomping Ocaml with native threads now to see if
that will help !
--
Berke

-------------------
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