]> git.pond.sub.org Git - empserver/commit
Add missing thread yield system call.
authorRon Koenderink <rkoenderink@yahoo.ca>
Fri, 28 Mar 2008 02:07:11 +0000 (20:07 -0600)
committerRon Koenderink <rkoenderink@yahoo.ca>
Fri, 28 Mar 2008 02:07:11 +0000 (20:07 -0600)
commit9a4f49f128d80e25800783f52487d4a7046e41c3
treea7e8fd5828fb17020ecd4a3b8dbdb058de11316c
parente89a4b5657246f22f763304f8efb45363cd3c284
Add missing thread yield system call.

This change fixes a bug where the threads were not treated
fairly.  Before the fix, empth_yield would only yield to
threads already waiting hThreadMutex mutex.  It would not
yield to other threads ready to run from the release of other
mutexes.  An example of this is that the update task did
not start when force command was issued from script sequence.
src/lib/empthread/ntthread.c