Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
dart::ToggleBreakpointTask Class Reference
Inheritance diagram for dart::ToggleBreakpointTask:
dart::ThreadPool::Task dart::IntrusiveDListEntry< Task >

Public Member Functions

 ToggleBreakpointTask (IsolateGroup *isolate_group, Dart_Isolate isolate, std::atomic< bool > *done)
 
virtual void Run ()
 
- Public Member Functions inherited from dart::ThreadPool::Task
virtual ~Task ()
 
virtual void Run ()=0
 
- Public Member Functions inherited from dart::IntrusiveDListEntry< Task >
 IntrusiveDListEntry ()
 
 ~IntrusiveDListEntry ()
 

Additional Inherited Members

- Protected Member Functions inherited from dart::ThreadPool::Task
 Task ()
 

Detailed Description

Definition at line 5699 of file object_test.cc.

Constructor & Destructor Documentation

◆ ToggleBreakpointTask()

dart::ToggleBreakpointTask::ToggleBreakpointTask ( IsolateGroup isolate_group,
Dart_Isolate  isolate,
std::atomic< bool > *  done 
)
inline

Definition at line 5701 of file object_test.cc.

5710 : public ThreadPool::Task {

Member Function Documentation

◆ Run()

virtual void dart::ToggleBreakpointTask::Run ( )
inlinevirtual

Implements dart::ThreadPool::Task.

Definition at line 5705 of file object_test.cc.

5710 : public ThreadPool::Task {
5711 public:
5712 ToggleBreakpointTask(IsolateGroup* isolate_group,
5713 Dart_Isolate isolate,
5714 std::atomic<bool>* done)
5715 : isolate_group_(isolate_group), isolate_(isolate), done_(done) {}
5716 virtual void Run() {
5717 Dart_EnterIsolate(isolate_);
5719 const int kBreakpointLine = 5; // in the dart script below
5720 Thread* t = Thread::Current();
5721 for (intptr_t i = 0; i < 1000; i++) {
5723 Dart_SetBreakpoint(NewString(TestCase::url()), kBreakpointLine);
5725 int64_t breakpoint_id;
5726 {
5727 TransitionNativeToVM transition(t);
static void done(const char *config, const char *src, const char *srcOptions, const char *name)
Definition: DM.cpp:263
static const char * url()
Definition: unit_test.cc:185
static Thread * Current()
Definition: thread.h:362
ToggleBreakpointTask(IsolateGroup *isolate_group, Dart_Isolate isolate, std::atomic< bool > *done)
struct _Dart_Handle * Dart_Handle
Definition: dart_api.h:258
struct _Dart_Isolate * Dart_Isolate
Definition: dart_api.h:88
GAsyncResult * result
DART_EXPORT void Dart_EnterScope()
DART_EXPORT void Dart_EnterIsolate(Dart_Isolate isolate)
Dart_Handle NewString(const char *str)
Dart_Handle Dart_SetBreakpoint(Dart_Handle script_url_in, intptr_t line_number)
#define EXPECT_VALID(handle)
Definition: unit_test.h:643

The documentation for this class was generated from the following file: