Changeset 0792d99 for global.c


Ignore:
Timestamp:
Oct 29, 2012, 11:18:51 PM (9 years ago)
Author:
Anders Kaseorg <andersk@mit.edu>
Branches:
master
Children:
a90bd2f, c42a8d1, a902ebb
Parents:
cb124fc6
git-author:
Anders Kaseorg <andersk@mit.edu> (06/26/12 01:57:44)
git-committer:
Anders Kaseorg <andersk@mit.edu> (10/29/12 23:18:51)
Message:
Replace deprecated GLib < 2.31.0 thread APIs

As of GLib 2.31.0,
 - threading is now always enabled in GLib
 - libgthread is now an empty shell and g_thread_init() is no longer
   required (and has been deprecated)
 - simplified new thread creation API with the old API deprecated.  The
   concept of joinability has disappeared (all threads are joinable) as
   have priority levels, 'bound'ness (ie: kernel vs. userspace threads)
   and ability to manipulate the stack size.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
File:
1 edited

Legend:

Unmodified
Added
Removed
  • global.c

    rcb124fc6 r0792d99  
    1010
    1111  g_type_init();
     12#if !GLIB_CHECK_VERSION(2, 31, 0)
    1213  g_thread_init(NULL);
     14#endif
    1315
    1416  owl_select_init();
Note: See TracChangeset for help on using the changeset viewer.