[parrot/parrot] 51f564: Fix eternal sleep of threads if main thread slept ...
noreply at github.com
noreply at github.com
Fri Nov 11 13:37:02 UTC 2011
Branch: refs/heads/threads
Home: https://github.com/parrot/parrot
Commit: 51f564d4a1c7ea5a508024cfcd70f703869228ac
https://github.com/parrot/parrot/commit/51f564d4a1c7ea5a508024cfcd70f703869228ac
Author: Stefan Seifert <nine at detonation.org>
Date: 2011-11-11 (Fri, 11 Nov 2011)
Changed paths:
M include/parrot/thread.h
M src/scheduler.c
M src/thread.c
Log Message:
-----------
Fix eternal sleep of threads if main thread slept as well
When the main thread goes to sleep as well, on wakeup it only checked
it's own alarms. Threads didn't get a chance to check theirs.
Moved thread notification code to Parrot_thread_notify_threads and
calling it now in both appropriate places.
More information about the parrot-commits
mailing list