MCPcopy Create free account
hub / github.com/FastLED/FastLED / locked_print

Function locked_print

ci/util/locked_print.py:7–12  ·  view source on GitHub ↗

Print with a lock to prevent garbled output for multiple threads.

(string: str)

Source from the content-addressed store, hash-verified

5
6
7def locked_print(string: str):
8 """Print with a lock to prevent garbled output for multiple threads."""
9 with PRINT_LOCK:
10 # print only prints so much, break up the string into lines
11 for line in string.splitlines():
12 print(line)

Callers 12

mainFunction · 0.90
compile_with_pio_ciFunction · 0.90
run_symbol_analysisFunction · 0.90
mainFunction · 0.90
compile_examplesFunction · 0.90
_install_global_packageFunction · 0.90
robust_rmtreeFunction · 0.90
safe_file_removalFunction · 0.90
create_build_dirFunction · 0.90
concurrent_runFunction · 0.90

Calls 1

printFunction · 0.50

Tested by

no test coverage detected