]> rtime.felk.cvut.cz Git - frescor/frsh.git/commit
Added VRES type to the key of thread/VRES repository.
authorDario <dario@dario-desktop.(none)>
Thu, 30 Apr 2009 08:52:40 +0000 (10:52 +0200)
committerDario <dario@dario-desktop.(none)>
Thu, 30 Apr 2009 08:52:40 +0000 (10:52 +0200)
commit969edd81b5624dcf4c32424951c17c488f4a6938
treeeced1201f0bab35e558f03dd442dbad0fa5f5a17
parent936127527148c8f77dfa6f4cf3315f366f5a3841
Added VRES type to the key of thread/VRES repository.

Since more than one single resource type has to be supported, it
came out that using only the thread-ID as the key of the trhead/VRES
repository (i.e., where the mapping between thread and vreses is kept)
is not enough.
In fact, what would happen if the user tries to bind _the_same_ thread
to two different vreses, each one associated to a different resource?

For that reason, the repository (and its accessor functions) has been
modified such that also the vres type is part of the key. Thus, the
same thread could be safely bound to one vres for each resource
we have in the system.
fres/resalloc/fra_generic.c
fres/resalloc/fra_generic.h
fres/resalloc/fres_vres.c
fres/resalloc/fres_vres.h
frsh_api/frsh_synchobj.c
frsh_api/frsh_thread.c
resources/cpu_aquosa/lib/frsh_aqcpu.c