mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
ceftests: Avoid shutdown hang due to leaked TestHandlers
This commit is contained in:
@@ -211,9 +211,9 @@ class TestHandler : public CefClient,
|
||||
void OnWindowCreated(int browser_id);
|
||||
void OnWindowDestroyed(int browser_id);
|
||||
|
||||
// Returns true if a TestHandler currently exists.
|
||||
static bool HasTestHandler() {
|
||||
return test_handler_count_.load(std::memory_order_relaxed) > 0U;
|
||||
// Returns the count of TestHandlers the currently exist.
|
||||
static size_t GetTestHandlerCount() {
|
||||
return test_handler_count_.load(std::memory_order_relaxed);
|
||||
}
|
||||
|
||||
std::string debug_string_prefix() const { return debug_string_prefix_; }
|
||||
|
Reference in New Issue
Block a user