Grab thread_counter_pools LOCK when increasing leftover_task_counter.
authorSebastian Wilhelmi <wilhelmi@google.com>
Tue, 29 Jan 2008 10:07:07 +0000 (10:07 +0000)
committerSebastian Wilhelmi <wilhelmi@src.gnome.org>
Tue, 29 Jan 2008 10:07:07 +0000 (10:07 +0000)
commitfa7351324a30009349891112c04e39af65eea6a3
treeec70009b99f6f1c5e670144d8f8ec50e49e4a20e
parent757fc3f0a599ce6f729827bd55443393c87a7c11
Grab thread_counter_pools LOCK when increasing leftover_task_counter.

2008-01-29  Sebastian Wilhelmi  <wilhelmi@google.com>

* tests/threadpool-test.c (test_thread_pools): Grab
thread_counter_pools LOCK when increasing
leftover_task_counter. Fixes race in test. (#512624, Simon Murray)

svn path=/trunk/; revision=6406
ChangeLog
tests/threadpool-test.c