You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Original bug ID: 1523 Reporter: administrator Status: closed Resolution: fixed Priority: normal Severity: minor Category: ~DO NOT USE (was: OCaml general)
Bug description
hi,
the following programm shows that neither Unix.select nor
Unix.sleep works with the Graphics library.
- michaell becker
ocamlc -v
The Objective Caml compiler, version 3.06
uname -a
Linux strolch 2.4.10-4GB #
let mysleep () =
ignore (Unix.select [] [] [] 10.0)
(* Unix.sleep 60; *)
let _ =
begin
Printf.printf "hallo\n";
flush stdout;
Graphics.open_graph " 10x10";
mysleep ();
Graphics.close_graph ();
Printf.printf "bye\n"
end
The text was updated successfully, but these errors were encountered:
Partially fixed by using async I/O rahter than timer on Linux. General case
remains hard: would need a separate thread to handle events. XL, 2003-02-11.
Original bug ID: 1523
Reporter: administrator
Status: closed
Resolution: fixed
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)
Bug description
hi,
the following programm shows that neither Unix.select nor
Unix.sleep works with the Graphics library.
ocamlc -v
The Objective Caml compiler, version 3.06
uname -a
Linux strolch 2.4.10-4GB #
let mysleep () =
ignore (Unix.select [] [] [] 10.0)
(* Unix.sleep 60; *)
let _ =
begin
Printf.printf "hallo\n";
flush stdout;
Graphics.open_graph " 10x10";
mysleep ();
Graphics.close_graph ();
Printf.printf "bye\n"
end
The text was updated successfully, but these errors were encountered: