1. 10 6月, 2014 1 次提交
    • M
      glib-compat.h: add new thread API emulation on top of pre-2.31 API · 86946a2d
      Michael Tokarev 提交于
      Thread API changed in glib-2.31 significantly.  Before that version,
      conditionals and mutexes were only allocated dynamically, using
      _new()/_free() interface.  in 2.31 and up, they're allocated statically
      as regular variables, and old interface is deprecated.
      
      (Note: glib docs says the new interface is available since version
      2.32, but it was actually introduced in version 2.31).
      
      Create the new interface using old primitives, by providing non-opaque
      definitions of the base types (GCond and GMutex) using GOnces.
      
      Replace #ifdeffery around GCond and GMutex in trace/simple.c and
      coroutine-gthread.c too because it does not work anymore with the new
      glib-compat.h.
      Signed-off-by: NMichael Tokarev <mjt@tls.msk.ru>
      Reviewed-by: NStefan Hajnoczi <stefanha@redhat.com>
      [Use GOnce to support lazy initialization; introduce CompatGMutex
       and CompatGCond.  - Paolo]
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      86946a2d
  2. 08 5月, 2014 1 次提交
  3. 19 12月, 2012 1 次提交
  4. 14 4月, 2012 1 次提交
  5. 21 12月, 2011 1 次提交
  6. 22 8月, 2011 1 次提交
  7. 21 8月, 2011 1 次提交
  8. 01 8月, 2011 1 次提交