Sprinkle static around

pull/3613/head
Behdad Esfahbod 3 years ago
parent 4386626ee0
commit f371789b40
  1. 4
      perf/benchmark-font.cc
  2. 4
      perf/benchmark-shape.cc
  3. 8
      test/threads/hb-shape-threads.cc

@ -30,8 +30,8 @@ struct test_input_t
{false, SUBSET_FONT_BASE_PATH "NotoSerifMyanmar-Regular.otf"},
};
test_input_t *tests = default_tests;
unsigned num_tests = sizeof (default_tests) / sizeof (default_tests[0]);
static test_input_t *tests = default_tests;
static unsigned num_tests = sizeof (default_tests) / sizeof (default_tests[0]);
enum backend_t { HARFBUZZ, FREETYPE };

@ -55,8 +55,8 @@ struct test_input_t
true},
};
test_input_t *tests = default_tests;
unsigned num_tests = sizeof (default_tests) / sizeof (default_tests[0]);
static test_input_t *tests = default_tests;
static unsigned num_tests = sizeof (default_tests) / sizeof (default_tests[0]);
enum backend_t { HARFBUZZ, FREETYPE };

@ -56,14 +56,14 @@ struct test_input_t
true},
};
test_input_t *tests = default_tests;
unsigned num_tests = sizeof (default_tests) / sizeof (default_tests[0]);
static test_input_t *tests = default_tests;
static unsigned num_tests = sizeof (default_tests) / sizeof (default_tests[0]);
enum backend_t { HARFBUZZ, FREETYPE };
// https://en.cppreference.com/w/cpp/thread/condition_variable/wait
std::condition_variable cv;
std::mutex cv_m;
static std::condition_variable cv;
static std::mutex cv_m;
static bool ready = false;
static unsigned num_repetitions = 1;

Loading…
Cancel
Save