5#include "flutter/runtime/platform_isolate_manager.h"
7#include "flutter/runtime/dart_isolate.h"
13 std::scoped_lock lock(lock_);
18 std::scoped_lock lock(lock_);
23 std::scoped_lock lock(lock_);
28 FML_DCHECK(platform_isolates_.find(isolate) == platform_isolates_.end());
29 platform_isolates_.insert(isolate);
40 std::scoped_lock lock(lock_);
47 FML_DCHECK(platform_isolates_.find(isolate) != platform_isolates_.end());
48 platform_isolates_.erase(isolate);
55 std::scoped_lock lock(lock_);
57 std::unordered_set<Dart_Isolate> platform_isolates;
58 std::swap(platform_isolates_, platform_isolates);
66 std::scoped_lock lock(lock_);
67 return platform_isolates_.find(isolate) != platform_isolates_.end();
void swap(sk_sp< T > &a, sk_sp< T > &b)
DART_EXPORT void Dart_ShutdownIsolate(void)
struct _Dart_Isolate * Dart_Isolate
DART_EXPORT void Dart_EnterIsolate(Dart_Isolate isolate)
#define FML_DCHECK(condition)