[parrot/parrot] fba6c7: [GH #830] Implement platform Parrot_get_num_cpus

GitHub noreply at github.com
Sun Sep 16 01:15:19 UTC 2012


  Branch: refs/heads/threads
  Home:   https://github.com/parrot/parrot
  Commit: fba6c79491d1077023c05a925374b485147a2d1a
      https://github.com/parrot/parrot/commit/fba6c79491d1077023c05a925374b485147a2d1a
  Author: Reini Urban <rurban at cpanel.net>
  Date:   2012-09-15 (Sat, 15 Sep 2012)

  Changed paths:
    M MANIFEST
    M config/auto/headers.pm
    M config/auto/platform.pm
    M config/gen/makefiles/root.in
    M include/parrot/platform_interface.h
    M include/parrot/thread.h
    A src/platform/generic/num_cpus.c
    A src/platform/win32/num_cpus.c
    M src/thread.c

  Log Message:
  -----------
  [GH #830] Implement platform Parrot_get_num_cpus

Parrot_get_num_cpus is the new default instead of MAX_THREADS. Initialized at startup


  Commit: b6c1cdaf9e36e006ce5e6841b7a9db8642d9c460
      https://github.com/parrot/parrot/commit/b6c1cdaf9e36e006ce5e6841b7a9db8642d9c460
  Author: Reini Urban <rurban at cpanel.net>
  Date:   2012-09-15 (Sat, 15 Sep 2012)

  Changed paths:
    M .gitignore
    M frontend/parrot2/main.c
    M include/parrot/api.h
    M include/parrot/gc_api.h
    M include/parrot/longopt.h
    M src/embed/api.c
    M src/interp/api.c

  Log Message:
  -----------
  [GH #830] Add Parrot_set_num_threads and --numthreads cmdline

The new parrot cmdline option --numthreads overrides Parrot_get_num_cpus().
Parrot_set_num_threads is called by Parrot_interp_initialize_interpreter()


Compare: https://github.com/parrot/parrot/compare/5412296a1a9a...b6c1cdaf9e36


More information about the parrot-commits mailing list