view cfg.mk @ 16869:38e6d30d7e4d

poll/select: prevent busy-waiting 2012-05-21 Paolo Bonzini <bonzini@gnu.org> poll/select: prevent busy-waiting. SwitchToThread() only gives away the rest of the current time slice to another thread in the current process. So if the thread that feeds the file decscriptor we're polling is not in the current process, we get busy-waiting. * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread(). Patch from Theodore Leblond. * lib/select.c: Split polling out of the loop that sets the output fd_sets. Check for zero result and loop if the wait timeout is infinite.
author Paolo Bonzini <bonzini@gnu.org>
date Mon, 21 May 2012 09:52:42 +0200
parents 5ad2d5fd1f23
children 5ae6e7d59a53
line wrap: on
line source

# This file is used via the maint.mk-using rule in Makefile.

local-checks-to-skip =			\
  sc_GFDL_version			\
  sc_GPL_version			\
  sc_avoid_if_before_free		\
  sc_bindtextdomain			\
  sc_cast_of_alloca_return_value	\
  sc_cast_of_argument_to_free		\
  sc_cast_of_x_alloc_return_value	\
  sc_error_message_period		\
  sc_error_message_uppercase		\
  sc_immutable_NEWS			\
  sc_m4_quote_check			\
  sc_makefile_TAB_only_indentation	\
  sc_makefile_at_at_check		\
  sc_makefile_path_separator_check	\
  sc_obsolete_symbols			\
  sc_program_name			\
  sc_prohibit_HAVE_MBRTOWC		\
  sc_prohibit_S_IS_definition		\
  sc_prohibit_always_true_header_tests	\
  sc_prohibit_always-defined_macros	\
  sc_prohibit_atoi_atof			\
  sc_prohibit_c_ctype_without_use	\
  sc_prohibit_dirent_without_use	\
  sc_prohibit_error_without_use		\
  sc_prohibit_getopt_without_use	\
  sc_prohibit_have_config_h		\
  sc_prohibit_inttostr_without_use	\
  sc_prohibit_magic_number_exit		\
  sc_prohibit_path_max_allocation	\
  sc_prohibit_reversed_compare_failure	\
  sc_prohibit_safe_read_without_use	\
  sc_prohibit_signal_without_use	\
  sc_prohibit_stat_st_blocks		\
  sc_prohibit_stddef_without_use	\
  sc_prohibit_stdio--_without_use	\
  sc_prohibit_strcmp			\
  sc_prohibit_strings_without_use	\
  sc_prohibit_undesirable_word_seq	\
  sc_prohibit_xalloc_without_use	\
  sc_require_config_h			\
  sc_require_config_h_first		\
  sc_space_tab				\
  sc_texinfo_acronym			\
  sc_two_space_separator_in_usage	\
  sc_unmarked_diagnostics		\
  sc_useless_cpp_parens

empty-at-EOF = /fr/LC_MESSAGES/test-quotearg\.mo$$|^doc/INSTALL(\.(ISO|UTF-8))?
exclude_file_name_regexp--sc_prohibit_empty_lines_at_EOF = \
  ^modules/|^lib/javaversion\.class$$|$(empty-at-EOF)
exclude_file_name_regexp--sc_prohibit_doubled_word = \
  ^(tests/test-init\.sh|lib/base(32|64)\.c)$$
exclude_file_name_regexp--sc_prohibit_openat_without_use = ^lib/selinux-at\.c$$
exclude_file_name_regexp--sc_trailing_blank = \
  ^(.*\.class|build-aux/texinfo\.tex|doc/Copyright/assign\.future\.manual)$$