MCPcopy Create free account
hub / github.com/qilingframework/qiling / NestedCounter

Class NestedCounter

qiling/extensions/multitask.py:123–133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

121# This manages nested uc_emu_start calls and is designed as a friend
122# class of MultiTaskUnicorn.
123class NestedCounter:
124
125 def __init__(self, mtuc: "MultiTaskUnicorn"):
126 self._mtuc = mtuc
127
128 def __enter__(self, *args, **kwargs):
129 self._mtuc._nested_started += 1
130 return self
131
132 def __exit__(self, *args, **kwargs):
133 self._mtuc._nested_started -= 1
134
135
136# This mimic a Unicorn object by maintaining the same interface.

Callers 2

emu_startMethod · 0.85
tasks_startMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected