OCaml Forge
SCM

Detail: [#1018] GtkThread without busy waiting

Patches: Browse | Download .csv | Monitor

[#1018] GtkThread without busy waiting

Date:
2011-07-27 09:48
Priority:
3
State:
Open
Submitted by:
Dawid Toton (toton)
Assigned to:
Nobody (None)
Resolution:
Awaiting Response
Version:
None
Component:
None
 
Summary:
GtkThread without busy waiting

Detailed description
Preparatory commits:
* some whitespace noise isolated:
https://github.com/toton/lablgtk/commit/c4e212c26d2035762b46f07b2f39a9e47a41e64c
* bindings to few necessary functions:
https://github.com/toton/lablgtk/commit/75d3393b53f25017f1f84fabf863e9251633749c

The actual implementation:
https://github.com/toton/lablgtk/commit/a5ff63e7ef3b7f70d6361bfa6065a3fdd1fe6adc

Followup

Message
Date: 2012-08-17 11:45
Sender: Jacques Garrigue

Solved busy waiting using another idea in git, by making polling non-blocking in the glib code.
Feedback would be helpful.
Date: 2012-08-17 06:56
Sender: Jacques Garrigue

Sorry not to have answered your patch for so long.
Using gdk threads is indeed a potential option for the future.
For me the reason to stick to "busy" waiting (actually not busy if properly configured) is that it is simpler, more portable, and uses only ocaml code.

A few questions about your patch:
* is is portable (works with the X11/Win32/Quartz backends)
* does it work with the multithreaded toplevel?
* less important: does it work with vm threads
(I'm not even sure the current implementation does)

Attached Files:

Changes:

Field Old Value Date By
ResolutionNone2012-08-17 06:56garrigue