[parrot/parrot] 427b5f: Replace timer thread with time checks and sleep fo...

GitHub noreply at github.com
Sun Apr 29 15:10:31 UTC 2012

  Branch: refs/heads/threads
  Home:   https://github.com/parrot/parrot
  Commit: 427b5f86caeda7def57e88d09da52d85e7e7d320
  Author: Stefan Seifert <nine at detonation.org>
  Date:   2012-04-29 (Sun, 29 Apr 2012)

  Changed paths:
    M config/gen/makefiles/root.in
    M include/parrot/alarm.h
    M src/alarm.c
    M src/pmc/parrotinterpreter.pmc
    M src/scheduler.c
    M src/thread.c

  Log Message:
  Replace timer thread with time checks and sleep for --without-threads

Fixes all tests when configured --without-threads

Instead of a timer thread incrementing an alarm serial, we check the
current time directly. Should be some performance hit, but without
threading support, there's only so much we can do.

When no tasks are active, use usleep or Sleep instead of a condition
variable for waiting. Green threads are used instead of real threads for
scheduling tasks.

More information about the parrot-commits mailing list