third_party/blink/tools/blinkpy/style/checkers/cpp.py
def check_posix_threading(clean_lines, line_number, error):
    """Checks for calls to thread-unsafe functions.

    Much code has been originally written without consideration of
    multi-threading. Also, engineers are relying on their old experience;
    they have learned posix before threading extensions were added. These
    tests guide the engineers to use thread-safe functions (when using
    posix directly).

    Args:
      clean_lines: A CleansedLines instance containing the file.
      line_number: The number of the line to check.
      error: The function to call with any errors found.
    """
    line = clean_lines.elided[line_number]
    for single_thread_function, multithread_safe_function in _THREADING_LIST:
        index = line.find(single_thread_function)
        # Comparisons made explicit for clarity
        if index >= 0 and (index == 0 or
                           (not line[index - 1].isalnum()
                            and line[index - 1] not in ('_', '.', '>'))):
            error(
                line_number, 'runtime/threadsafe_fn', 2, 'Consider using ' +
                multithread_safe_function + '...) instead of ' +
                single_thread_function + '...) for improved thread safety.')
Checks for calls to thread-unsafe functions.

    Much code has been originally written without consideration of
    multi-threading. Also, engineers are relying on their old experience;
    they have learned posix before threading extensions were added. These
    tests guide the engineers to use thread-safe functions (when using
    posix directly).

    Args:
      clean_lines: A CleansedLines instance containing the file.
      line_number: The number of the line to check.
      error: The function to call with any errors found.
    
Checks for calls to thread-unsafe functions.
Much code has been originally written without consideration of
multi-threading. Also, engineers are relying on their old experience;
they have learned posix before threading extensions were added. These
tests guide the engineers to use thread-safe functions (when using
posix directly).
Checks for calls to thread - unsafe functions . Much code has been originally written without consideration of multi - threading . Also engineers are relying on their old experience ; they have learned posix before threading extensions were added . These tests guide the engineers to use thread - safe functions ( when using posix directly ) .
def check_posix_threading(clean_lines, line_number, error):
    line = clean_lines.elided[line_number]
    for single_thread_function, multithread_safe_function in _THREADING_LIST:
        index = line.find(single_thread_function)
        if index >= 0 and (index == 0 or
                           (not line[index - 1].isalnum()
                            and line[index - 1] not in ('_', '.', '>'))):
            error(
                line_number, 'runtime/threadsafe_fn', 2, 'Consider using ' +
                multithread_safe_function + '...) instead of ' +
                single_thread_function + '...) for improved thread safety.')
def check_posix_threading ( clean_lines , line_number , error ) : line = clean_lines . elided [ line_number ] for single_thread_function , multithread_safe_function in _THREADING_LIST : index = line . find ( single_thread_function ) if index >= 0 and ( index == 0 or ( not line [ index - 1 ] . isalnum ( ) and line [ index - 1 ] not in ( '_' , '.' , '>' ) ) ) : error ( line_number , 'runtime/threadsafe_fn' , 2 , 'Consider using ' + multithread_safe_function + '...) instead of ' + single_thread_function + '...) for improved thread safety.' )
Checks for calls to thread-unsafe functions.
Checks for calls to thread - unsafe functions .
"""Checks for calls to thread-unsafe functions.

    Much code has been originally written without consideration of
    multi-threading. Also, engineers are relying on their old experience;
    they have learned posix before threading extensions were added. These
    tests guide the engineers to use thread-safe functions (when using
    posix directly).

    Args:
      clean_lines: A CleansedLines instance containing the file.
      line_number: The number of the line to check.
      error: The function to call with any errors found.
    """ # Comparisons made explicit for clarity
clean_lines
A CleansedLines instance containing the file.
A CleansedLines instance containing the file .
line_number
The number of the line to check.
The number of the line to check .
error
The function to call with any errors found.
The function to call with any errors found .