Results 1 to 3 of 3

Thread: gdk_threads_enter()/leave() are being deprecated

  1. #1
    Join Date
    Aug 2012
    Beans
    185

    gdk_threads_enter()/leave() are being deprecated

    Hi,
    As of Gtk 3.6 these methods are deprecated.
    Is there any official documentation on this and what's the official new rules to do threading with the Gtk 3.6+ versions?

    So far I only found devs arguing about it.

  2. #2
    Join Date
    Mar 2006
    Beans
    837

    Re: gdk_threads_enter()/leave() are being deprecated

    You can always inform the GUI thread to update by using idle timers or asycronous queues. (both are in glib)

  3. #3
    Join Date
    Aug 2012
    Beans
    185

    Re: gdk_threads_enter()/leave() are being deprecated

    Thanks, I know in programming there's always a few ways to do the same thing, that's not really what I'm asking.

    I'm just curious about a clear explanation where they're heading to, what's the upcoming threading model and why those decisions. gdk_threads_enter/leave work just fine, and are better in the sense that my source code is less fragmented e.g. doesn't have to be scattered across extra methods.

    So I wonder are they just trying to force programmers to use only one threading approach or are there serious technical difficulties supporting gdk_threads_enter/leave, or maybe something else.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •