klnusbaum/cimunit — pull request #4 by dframpto (2011-11-02 05:28:46+00:00)
Title: Fixed both "syntax error" and hanging tests

The "syntax error" was caused by not placing a mutex around the runtime parser.

The hanging tests were caused by a race condition between the scheduler and the event objects. To correct, the fire capability has been moved from the event to the scheduler. Additionally, the barrier is unlocked only if the runtime parser indicates the conditions needed to activate the action event are met.

This last change will need to be modified slightly to support named threads, but work for the moment. The change needed will be that named thread events will need to have separate barriers from unnamed thread events. I will add this change as part of adding named thread event support.