def CheckPosixThreading(filename, clean_lines, linenum, error):
 line = clean_lines.elided[linenum]
 for (single_thread_function, multithread_safe_function) in threading_list:
  ix = line.find(single_thread_function)
  if ((ix >= 0) and ((ix == 0) or ((not line[(ix - 1)].isalnum()) and (line[(ix - 1)] not in ('_', '.', '>'))))):
   error(filename, linenum, 'runtime/threadsafe_fn', 2, (((('Consider using ' + multithread_safe_function) + '...) instead of ') + single_thread_function) + '...) for improved thread safety.'))

def CheckPosixThreading ( filename , clean_lines , linenum , error ) : line = clean_lines . elided [ linenum ] for ( single_thread_function , multithread_safe_function ) in threading_list : ix = line . find ( single_thread_function ) if ( ( ix >= 0 ) and ( ( ix == 0 ) or ( ( not line [ ( ix - 1 ) ] . isalnum ( ) ) and ( line [ ( ix - 1 ) ] not in ( '_' , '.' , '>' ) ) ) ) ) : error ( filename , linenum , '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 .