BUG: race condition when starting threads accessing resources
commit8500276434d9c8d76fa32d71bb8382f5bb5f5db4
authorChristian Thaeter <ct@pipapo.org>
Mon, 1 Feb 2010 08:22:03 +0000 (1 09:22 +0100)
committerChristian Thaeter <ct@pipapo.org>
Mon, 1 Feb 2010 08:22:03 +0000 (1 09:22 +0100)
tree34e7547eb299f14a7769fb7835696e03f9dfc2f0
parente13314f6886acfeb48dd528e98287ebbcf74be80
BUG: race condition when starting threads accessing resources

A resource should be registered at the resourcetracker when it becomes
available. In presence of threads there is a race condition when a
created immediately tries to access this resource. A proper solution is to
make resource operations atomic with the resourcetracker.

This commit introduces a test with the proposed syntax to be implemented in
the following commits. Using block statements again (as faulty abadoned
some time ago)
tests/Makefile.am
tests/test_nobug_threadstress.c [new file with mode: 0644]