MCPcopy Create free account
hub / github.com/google/gapid / WaitForMethodEntry

Method WaitForMethodEntry

core/java/jdwp/helpers.go:85–104  ·  view source on GitHub ↗

WaitForMethodEntry blocks until the method on class is entered, and then returns the method entry event. All threads are suspended when the method returns.

(ctx context.Context, class ClassID, method MethodID)

Source from the content-addressed store, hash-verified

83// returns the method entry event.
84// All threads are suspended when the method returns.
85func (c *Connection) WaitForMethodEntry(ctx context.Context, class ClassID, method MethodID) (*EventMethodEntry, error) {
86 var out *EventMethodEntry
87
88 onEvent := func(event Event) bool {
89 e := event.(*EventMethodEntry)
90 if e.Location.Method == method {
91 out = e
92 return false
93 }
94 c.ResumeAll()
95 return true
96 }
97
98 err := c.WatchEvents(ctx, MethodEntry, SuspendAll, onEvent, ClassOnlyEventModifier(class))
99 if err != nil {
100 return nil, err
101 }
102
103 return out, nil
104}

Callers 2

waitForOnCreateFunction · 0.80
waitForVulkanLoadFunction · 0.80

Calls 3

ResumeAllMethod · 0.95
WatchEventsMethod · 0.95
ClassOnlyEventModifierTypeAlias · 0.85

Tested by

no test coverage detected