int main (int argc, char *argv[]) { #ifdef _RWSTD_REENTRANT // set nthreads to the greater of the number of processors // and 2 (for uniprocessor systems) by default opt_nthreads = rw_get_cpus (); if (opt_nthreads < 2) opt_nthreads = 2; #endif // _RWSTD_REENTRANT return rw_test (argc, argv, __FILE__, "lib.locale.cons", "thread safety", run_test, "|-combine~ " "|-nloops#0 " // must be non-negative "|-nthreads#0-* " // must be in [0, MAX_THREADS] "|-locales=", // must be provided &opt_combine, &opt_nloops, int (MAX_THREADS), &opt_nthreads, &rw_opt_setlocales); }
int main (int argc, char *argv[]) { #ifdef _RWSTD_REENTRANT // set nthreads to the greater of the number of processors // and 2 (for uniprocessor systems) by default opt_nthreads = rw_get_cpus (); if (opt_nthreads < 2) opt_nthreads = 2; #endif // _RWSTD_REENTRANT return rw_test (argc, argv, __FILE__, "lib.locale.money.put", "thread safety", run_test, "|-soft-timeout#0 " // must be non-negative "|-nloops#0 " // must be non-negative "|-nthreads#0-* " // must be in [0, MAX_THREADS] "|-nlocales#0 " // arg must be non-negative "|-locales= " // must be provided "|-shared-locale# ", &opt_timeout, &opt_nloops, int (MAX_THREADS), &opt_nthreads, &opt_nlocales, &rw_opt_setlocales, &opt_shared_locale); }
int main (int argc, char *argv[]) { #ifdef _RWSTD_REENTRANT // set nthreads to the greater of the number of processors // and 2 (for uniprocessor systems) by default opt_nthreads = rw_get_cpus (); if (opt_nthreads < 2) opt_nthreads = 2; #endif // _RWSTD_REENTRANT return rw_test (argc, argv, __FILE__, "lib.locale.global.templates", "thread safety", run_test, "|-has_facet~ " "|-use_facet~ " "|-soft-timeout#0 " // must be non-negative "|-nloops#0 " // arg must be non-negative "|-nthreads#0-* " // arg must be in [0, MAX_THREADS] "|-locales= " // argument must be provided "|-no-exceptions# " // disable exceptions "|-codecvt~ " // enable/disable individual facets "|-collate~ " "|-ctype~ " "|-messages~ " "|-moneypunct~ " "|-moneypunct_intl~ " "|-money_get~ " "|-money_put~ " "|-numpunct~ " "|-num_get~ " "|-num_put~ " "|-time_get~ " "|-time_put~ ", &opt_has_facet, &opt_use_facet, &opt_timeout, &opt_nloops, int (MAX_THREADS), &opt_nthreads, &rw_opt_setlocales, &opt_no_exceptions, opt_facets + opt_inx_codecvt, opt_facets + opt_inx_collate, opt_facets + opt_inx_ctype, opt_facets + opt_inx_messages, opt_facets + opt_inx_moneypunct, opt_facets + opt_inx_moneypunct_intl, opt_facets + opt_inx_money_get, opt_facets + opt_inx_money_put, opt_facets + opt_inx_numpunct, opt_facets + opt_inx_num_get, opt_facets + opt_inx_num_put, opt_facets + opt_inx_time_get, opt_facets + opt_inx_time_put); }