Lines Matching refs:pm
49 static std::thread SpawnThread(PropertyMonitor* pm) { in SpawnThread() argument
50 return std::thread([pm]() { in SpawnThread()
51 pm->Run(); in SpawnThread()
55 static std::function<void()> RegisterExitCallback(PropertyMonitor* pm) { in RegisterExitCallback() argument
58 pm->Add(prop_name, [](std::string value) { return value != "1"; }); in RegisterExitCallback()
64 static void RegisterCallback(PropertyMonitor* pm, PropertyChanges* output, in RegisterCallback() argument
66 pm->Add(property_name, [output, property_name](std::string value) { in RegisterCallback()
75 PropertyMonitor pm; in TEST() local
78 auto exit_fn = RegisterExitCallback(&pm); in TEST()
82 RegisterCallback(&pm, &output, foo); in TEST()
85 RegisterCallback(&pm, &output, never_set); in TEST()
87 auto thread = SpawnThread(&pm); in TEST()
101 PropertyMonitor pm; in TEST() local
104 auto exit_fn = RegisterExitCallback(&pm); in TEST()
108 RegisterCallback(&pm, &output, foo); in TEST()
111 auto thread = SpawnThread(&pm); in TEST()
139 PropertyMonitor pm; in TEST() local
142 auto exit_fn = RegisterExitCallback(&pm); in TEST()
147 RegisterCallback(&pm, &output, foo); in TEST()
148 RegisterCallback(&pm, &output, bar); in TEST()
153 auto thread = SpawnThread(&pm); in TEST()