fix problem with old-style constrained-atomic mode

This commit is contained in:
Matthew Flatt 2010-08-22 07:31:55 -06:00
parent 68860526e5
commit f29c6a902f

View File

@ -4294,7 +4294,8 @@ void scheme_thread_block(float sleep_time)
do_swap_thread();
} else if (do_atomic && scheme_on_atomic_timeout
&& (atomic_timeout_auto_suspend < 2)) {
if (do_atomic <= atomic_timeout_atomic_level) {
if (!atomic_timeout_auto_suspend
|| (do_atomic <= atomic_timeout_atomic_level)) {
if (atomic_timeout_auto_suspend) {
atomic_timeout_auto_suspend++;
scheme_fuel_counter = p->engine_weight;