Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

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: 2002-08-29 (13:09)
From: Berke Durak <berke@a...>
Subject: Re: [Caml-list] Re: Two severe limitations in Graphics module
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.

I don't like threads very much because they are hard to debug with
ocamldebug, and native threads are not supported under every OS (for
ex. OpenBSD).

> 2/Why don't use alarm signam or something like ?

Alarm has only a single-second resolution and is not implemented under
MS-Windows. Plus the Graphics module uses the alarm signal, I think.
To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: