[parrot/parrot] 691213: Don't exit a thread if alarms are still active, fi...

noreply at github.com noreply at github.com
Wed Nov 9 17:27:35 UTC 2011


  Branch: refs/heads/threads
  Home:   https://github.com/parrot/parrot

  Commit: 69121334c48a468574f04d97f14be04eddc25c0c
      https://github.com/parrot/parrot/commit/69121334c48a468574f04d97f14be04eddc25c0c
  Author: Stefan Seifert <nine at detonation.org>
  Date:   2011-11-08 (Tue, 08 Nov 2011)

  Changed paths:
    M src/thread.c

  Log Message:
  -----------
  Don't exit a thread if alarms are still active, fixing sleep

Currently does a busy wait till alarms expire. Full implementation will
sleep until notified by the main thread.


  Commit: e034889aafb30e77ff7dbdf7a04f5b6461ee7fa4
      https://github.com/parrot/parrot/commit/e034889aafb30e77ff7dbdf7a04f5b6461ee7fa4
  Author: Stefan Seifert <nine at detonation.org>
  Date:   2011-11-08 (Tue, 08 Nov 2011)

  Changed paths:
    M include/parrot/thread.h
  M src/scheduler.c
  M src/thread.c

  Log Message:
  -----------
  Fix sleep in threads

Only up to 4 threads are now created. These threads are stored in a
threads array and get notified on alarms by the main thread writing a
byte to the notifier pipe of the thread.

TODO: implement on Windows
TODO: only write to the pipe if the thread is actually waiting for
alarms


  Commit: 1ee1c09aca850b53dd78372eb56a7628f1960482
      https://github.com/parrot/parrot/commit/1ee1c09aca850b53dd78372eb56a7628f1960482
  Author: Stefan Seifert <nine at detonation.org>
  Date:   2011-11-08 (Tue, 08 Nov 2011)

  Changed paths:
    M t/fullharness

  Log Message:
  -----------
  Fix job concurrency in fulltest


  Commit: 6b23e73dbea01e80f7f23f5fd53e16c8c664da29
      https://github.com/parrot/parrot/commit/6b23e73dbea01e80f7f23f5fd53e16c8c664da29
  Author: Stefan Seifert <nine at detonation.org>
  Date:   2011-11-08 (Tue, 08 Nov 2011)

  Changed paths:
    M t/fullharness

  Log Message:
  -----------
  Merge branch 'master' into threads


Compare: https://github.com/parrot/parrot/compare/2026fa8...6b23e73


More information about the parrot-commits mailing list