MCPcopy Create free account
hub / github.com/apache/impala / increment

Function increment

tests/stress/util.py:33–36  ·  view source on GitHub ↗

Increment a multiprocessing.Value object.

(counter)

Source from the content-addressed store, hash-verified

31
32
33def increment(counter):
34 """Increment a multiprocessing.Value object."""
35 with counter.get_lock():
36 counter.value += 1
37
38
39def print_stacks(*_):

Callers 5

_wait_until_reservedMethod · 0.90
_wait_until_fetchableMethod · 0.90
increment_metricMethod · 0.90
_start_single_runnerMethod · 0.90

Calls 1

get_lockMethod · 0.45

Tested by

no test coverage detected