1. 27 Mar, 2014 1 commit
  2. 09 Mar, 2014 2 commits
  3. 17 Oct, 2013 1 commit
    • Paolo Bonzini's avatar
      qemu-thread: add QemuEvent · c7c4d063
      Paolo Bonzini authored
      This emulates Win32 manual-reset events using futexes or conditional
      variables.  Typical ways to use them are with multi-producer,
      single-consumer data structures, to test for a complex condition whose
      elements come from different threads:
      
          for (;;) {
              qemu_event_reset(ev);
              ... test complex condition ...
              if (condition is true) {
                  break;
              }
              qemu_event_wait(ev);
          }
      
      Or more efficiently (but with some duplication):
      
          ... evaluate condition ...
          while (!condition) {
              qemu_event_reset(ev);
              ... evaluate condition ...
              if (!condition) {
                  qemu_event_wait(ev);
                  ... evaluate condition ...
              }
          }
      
      QemuEvent provides a very fast userspace path in the common case when
      no other thread is waiting, or the event is not changing state.
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      c7c4d063
  4. 12 Jan, 2013 1 commit
  5. 23 Dec, 2012 1 commit
  6. 19 Dec, 2012 1 commit
  7. 31 Oct, 2012 1 commit
  8. 02 Aug, 2012 1 commit
  9. 07 Feb, 2012 1 commit
  10. 15 Dec, 2011 1 commit
  11. 12 Dec, 2011 2 commits
  12. 21 Sep, 2011 1 commit
  13. 20 Aug, 2011 1 commit
  14. 19 Mar, 2011 1 commit
  15. 13 Mar, 2011 1 commit