Definition at line 157 of file dart_api_impl_test.cc.
◆ InfiniteLoopTask()
dart::InfiniteLoopTask::InfiniteLoopTask |
( |
Dart_Isolate * |
isolate, |
|
|
Monitor * |
monitor, |
|
|
bool * |
interrupted |
|
) |
| |
|
inline |
Definition at line 159 of file dart_api_impl_test.cc.
160 : isolate_(isolate), monitor_(monitor), interrupted_(interrupted) {}
◆ Run()
virtual void dart::InfiniteLoopTask::Run |
( |
| ) |
|
|
inlinevirtual |
Implements dart::ThreadPool::Task.
Definition at line 161 of file dart_api_impl_test.cc.
161 {
162 TestIsolateScope scope;
163 const char* kScriptChars =
164 "testMain() {\n"
165 " while(true) {};"
166 "}\n";
170 {
171 MonitorLocker ml(monitor_);
172 ml.Notify();
173 }
175
178 {
179 MonitorLocker ml(monitor_);
180 *interrupted_ = true;
181 ml.Notify();
182 }
183 }
static Isolate * Current()
static Dart_Handle LoadTestScript(const char *script, Dart_NativeEntryResolver resolver, const char *lib_uri=RESOLVED_USER_TEST_URI, bool finalize=true, bool allow_compile_errors=false)
struct _Dart_Handle * Dart_Handle
struct _Dart_Isolate * Dart_Isolate
DART_EXPORT Dart_Handle Dart_Invoke(Dart_Handle target, Dart_Handle name, int number_of_arguments, Dart_Handle *arguments)
DART_EXPORT const char * Dart_GetError(Dart_Handle handle)
DART_EXPORT bool Dart_IsError(Dart_Handle handle)
Dart_Handle NewString(const char *str)
#define EXPECT_VALID(handle)
The documentation for this class was generated from the following file: