]> rtime.felk.cvut.cz Git - frescor/frsh.git/commit
Fixed race condition in allocator registration
authorMichal Sojka <sojkam1@fel.cvut.cz>
Tue, 10 Nov 2009 13:35:51 +0000 (14:35 +0100)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Tue, 10 Nov 2009 13:35:51 +0000 (14:35 +0100)
commitfec41c0a65b45a9c5c3d5e762d6cb978f629c0a6
treef1531ef56792011d1eb16f5831f43ccd1f7ba91a
parent46bdfcdba5ae69dbfe393903281ee669b033fccf
Fixed race condition in allocator registration

This happened when multiple threads tried to negotiate contracts
simultaneously. The first negotiation triggers registration
of FRA with FCB and the check whether the FRA is already registered
was not protected by any mutex.
fres/resalloc/fra_generic.h
fres/resalloc/fra_registry.c
frsh_api/frsh_core.c