[parrot/parrot] 015d41: Improve chamaneos by replacing polling with a wait...
GitHub
noreply at github.com
Tue Apr 24 16:08:11 UTC 2012
Branch: refs/heads/threads
Home: https://github.com/parrot/parrot
Commit: 015d416203cc4bcc38596200d9fcc6009fe572bf
https://github.com/parrot/parrot/commit/015d416203cc4bcc38596200d9fcc6009fe572bf
Author: Stefan Seifert <nine at detonation.org>
Date: 2012-04-21 (Sat, 21 Apr 2012)
Changed paths:
M examples/threads/chameneos.pir
M include/parrot/oplib/core_ops.h
M include/parrot/oplib/ops.h
M include/parrot/opsenum.h
M src/ops/core.ops
M src/ops/core_ops.c
M src/ops/experimental.ops
Log Message:
-----------
Improve chamaneos by replacing polling with a waiters queue
Commit: 7c969bcdba1289e36d3dd3ea08ea7d78bc267987
https://github.com/parrot/parrot/commit/7c969bcdba1289e36d3dd3ea08ea7d78bc267987
Author: Stefan Seifert <nine at detonation.org>
Date: 2012-04-24 (Tue, 24 Apr 2012)
Changed paths:
M include/parrot/interpreter.h
M include/parrot/thread.h
M src/pmc/parrotinterpreter.pmc
M src/scheduler.c
M src/thread.c
Log Message:
-----------
Replace notifierfd pipe with a condition mutex
This improves cross platform compatability since Parrot_cond is also
available on Windows. This patch also abstracts away differences between
the main thread and the child threads into Parrot_thread_notify_thread
which should be used whenever scheduling a Task on a different thread to
wake it up in case it's waiting for new Tasks.
Commit: ef073feb943d2eac5b5388725e636a95e503d94a
https://github.com/parrot/parrot/commit/ef073feb943d2eac5b5388725e636a95e503d94a
Author: Stefan Seifert <nine at detonation.org>
Date: 2012-04-24 (Tue, 24 Apr 2012)
Changed paths:
M src/scheduler.c
Log Message:
-----------
Fix race condition between SIGALRM and pause()
Between the last Parrot_cx_check_alarms call and the pause() in the main
threads outer runlook, the ALRM signal that the pause() call should be
waiting for can be delivered. The pause() could then be waiting for the
next alarm to expire or worst case indefinitely.
Compare: https://github.com/parrot/parrot/compare/7ef9990...ef073fe
More information about the parrot-commits
mailing list