diffing dir...
Sun Jun 3 00:58:22 BST 2012 Daniel Wagner <da...@wa...>
* change gdk_threads_enter import from unsafe to safe
Ignore-this: cae9259155505b623b1afe09f4df2143
Safe imports have two uses: when a function may call back into Haskell, it must
be marked safe; and when a function may block (or take a long time to compute),
it may be marked safe to avoid blocking all other Haskell threads from making
progress. The cost of marking a function safe is decreased (serial)
performance.
Since the typical use case for gdk_threads_enter is to grab a lock in
concurrent code, it is important to ensure that other Haskell threads can make
progress -- especially since one of them may be holding the lock.
hunk ./gtk/Graphics/UI/Gtk/General/General.chs 205
-{#fun unsafe gdk_threads_enter as threadsEnter {} -> `()' #}
+{#fun gdk_threads_enter as threadsEnter {} -> `()' #}
|