1. 30 May, 2020 3 commits
  2. 28 May, 2020 15 commits
  3. 26 May, 2020 1 commit
  4. 23 May, 2020 1 commit
    • Chun-wei Fan's avatar
      glib-compile-resources: Fix exporting on Visual Studio · 47716bce
      Chun-wei Fan authored
      Have the generated .c code decorate the prototypes with "G_MODULE_EXPORT"
      instead of "extern" when --internal is not being used, so that we also
      export the symbols from the generated code on Visual Studio-style
      compilers.  If --internal is used, we decorate the prototypes with
      "G_GNUC_INTERNAL", as we did before.
      Note that since the generated .c code does not attempt to include the
      generated headers (if one is also generated), the gnerated headers are
      still generated as they were before.
  5. 22 May, 2020 13 commits
  6. 20 May, 2020 7 commits
    • Philip Withnall's avatar
      Merge branch 'lcopyfail' into 'master' · 8f291487
      Philip Withnall authored
      gobject: Handle runtime checks as such
      See merge request !1505
    • Philip Withnall's avatar
      tests: Speed up the cancellable test · 9f27f49e
      Philip Withnall authored
      The test added for #1841 spawned 100000 threads. That was fine on a
      desktop machine, but on a heavily loaded CI machine, it could result in
      large (and unpredictable) slowdowns, resulting in the test taking over
      120s in about 1 in 5 runs, and hence failing that CI pipeline due to a
      timeout. When passing normally on CI, the test would take around 90s.
      Here’s a histogram of time per iteration on a failing (timed out) test
      run. Each iteration is one thread spawn:
        Iteration duration (µs) | Frequency
                           ≤100 |     0
                        100–200 | 30257
                        200–400 | 13696
                        400–800 |  1046
                       800–1000 |   123
                      1000–2000 |   583
                      2000–4000 |  3779
                      4000–8000 |  4972
                     8000–10000 |  1027
                    10000–20000 |  2610
                    20000–40000 |   650
                    40000–80000 |    86
                   80000–100000 |    10
                  100000–200000 |     2
                        >200000 |     0
      There’s no actual need for the test to spawn 100000 threads, so rewrite
      it to reuse a single thread, and pass new data to that thread.
      Reverting the original commit (e4a690f5) reproduces the failure on
      100 out of 100 test runs with this commit applied, so the test still
      The test now takes 3s, rather than 11s, to run on my computer, and has
      passed when run with `meson test --repeat 1000 cancellable`.
      Signed-off-by: Philip Withnall's avatarPhilip Withnall <withnall@endlessm.com>
    • Edward Hervey's avatar
      gobject: Handle runtime checks as such · 898baa07
      Edward Hervey authored
      The various `g_strdup_printf()` returns values in the implementations of GValue
      lcopy_func are runtime checks which could be disabled if one wants and therefore
      should be handled as such with g_return_val_if_fail()
    • LRN's avatar
      GWin32RegistryKey: add MUI capabilities to get_value() · a22a15dc
      LRN authored
      An extra argument to g_win32_registry_key_get_value_w() and
      g_win32_registry_key_get_value() indicates that RegLoadMUIStringW()
      should be used instead of RegQueryValueExW(). It only works on
      strings, and automatically resolves resource strings (the ones
      that start with "@").
      The extra argument is needed to find resource DLLs that are only
      specified by their relative name.
    • majordaw's avatar
      win32 gpoll: Fix wait for at least one thread to return · 26991b60
      majordaw authored
      When timeout grater than 0 in g_poll function, the WaitForMultipleObjects
      call will wait for all the threads to return, but when only one thread
      got an event the others will sleep until the timeout elapses, and causes
      a stall. Triggering the stop event in g_poll in this case is useless as
      it is triggered when all the threads where already signaled or timed-out.
      Closes: #2107
    • Sebastian Dröge's avatar
      Merge branch 'docs-fix' into 'master' · e816e9c8
      Sebastian Dröge authored
      docs: Add indexes for symbols added in 2.66
      See merge request !1503
    • Philip Withnall's avatar