]> rtime.felk.cvut.cz Git - frescor/forb.git/commit
forb: Fix races between instances of forb_main_thread
authorMichal Sojka <sojkam1@fel.cvut.cz>
Fri, 18 Feb 2011 22:03:58 +0000 (23:03 +0100)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Fri, 18 Feb 2011 22:32:59 +0000 (23:32 +0100)
commit2723e0bb621aef5df96bffcda06a99d424ded8dd
tree3234d963a677fd7f204b4c4bdf62f7798e659294
parent29cb923948f5db504004cf93dff0de42f40203c1
forb: Fix races between instances of forb_main_thread

The data passed to forb_main_thread must be allocated for each thread
separately. Otherwise, threads may access data intended for other threads.
src/forbrun/forbrun.c